cluster.py (11851:824055fe6b30) cluster.py (12564:2778478ca882)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 16 unchanged lines hidden (view full) ---

25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Ron Dreslinski
28
29# Simple test script
30#
31# "m5 test.py"
32
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 16 unchanged lines hidden (view full) ---

25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Ron Dreslinski
28
29# Simple test script
30#
31# "m5 test.py"
32
33from __future__ import print_function
34
33import os
34import optparse
35import sys
36
37import m5
38from m5.objects import *
39
40# --------------------

--- 24 unchanged lines hidden (view full) ---

65 help="ROot directory of Splash2",
66 default="/dist/splash2/codes/")
67parser.add_option("-b", "--benchmark",
68 help="Splash 2 benchmark to run")
69
70(options, args) = parser.parse_args()
71
72if args:
35import os
36import optparse
37import sys
38
39import m5
40from m5.objects import *
41
42# --------------------

--- 24 unchanged lines hidden (view full) ---

67 help="ROot directory of Splash2",
68 default="/dist/splash2/codes/")
69parser.add_option("-b", "--benchmark",
70 help="Splash 2 benchmark to run")
71
72(options, args) = parser.parse_args()
73
74if args:
73 print "Error: script doesn't take any positional arguments"
75 print("Error: script doesn't take any positional arguments")
74 sys.exit(1)
75
76# --------------------
77# Define Splash2 Benchmarks
78# ====================
79class Cholesky(Process):
80 executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
81 cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\

--- 210 unchanged lines hidden (view full) ---

292m5.instantiate()
293
294# simulate until program terminates
295if options.maxtick:
296 exit_event = m5.simulate(options.maxtick)
297else:
298 exit_event = m5.simulate(m5.MaxTick)
299
76 sys.exit(1)
77
78# --------------------
79# Define Splash2 Benchmarks
80# ====================
81class Cholesky(Process):
82 executable = options.rootdir + '/kernels/cholesky/CHOLESKY'
83 cmd = 'CHOLESKY -p' + str(options.numcpus) + ' '\

--- 210 unchanged lines hidden (view full) ---

294m5.instantiate()
295
296# simulate until program terminates
297if options.maxtick:
298 exit_event = m5.simulate(options.maxtick)
299else:
300 exit_event = m5.simulate(m5.MaxTick)
301
300print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()
302print('Exiting @ tick', m5.curTick(), 'because', exit_event.getCause())
301
303