summaryrefslogtreecommitdiff
path: root/configs/example/spec06_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'configs/example/spec06_config.py')
-rw-r--r--configs/example/spec06_config.py117
1 files changed, 59 insertions, 58 deletions
diff --git a/configs/example/spec06_config.py b/configs/example/spec06_config.py
index 46781aa5a..0715909f4 100644
--- a/configs/example/spec06_config.py
+++ b/configs/example/spec06_config.py
@@ -137,121 +137,122 @@ if '--ruby' in sys.argv:
(options, args) = parser.parse_args()
if args:
- print "Error: script doesn't take any positional arguments"
+ print("Error: script doesn't take any positional arguments")
sys.exit(1)
#multiprocesses = []
numThreads = 1
if options.benchmark:
- print 'Selected SPEC_CPU2006 benchmark'
+ print('Selected SPEC_CPU2006 benchmark')
if options.benchmark == 'perlbench':
- print '--> perlbench'
+ print('--> perlbench')
process = spec06_benchmarks.perlbench
elif options.benchmark == 'bzip2':
- print '--> bzip2'
+ print('--> bzip2')
process = spec06_benchmarks.bzip2
elif options.benchmark == 'gcc':
- print '--> gcc'
+ print('--> gcc')
process = spec06_benchmarks.gcc
elif options.benchmark == 'bwaves':
- print '--> bwaves'
+ print('--> bwaves')
process = spec06_benchmarks.bwaves
elif options.benchmark == 'gamess':
- print '--> gamess'
+ print('--> gamess')
process = spec06_benchmarks.gamess
elif options.benchmark == 'mcf':
- print '--> mcf'
+ print('--> mcf')
process = spec06_benchmarks.mcf
elif options.benchmark == 'milc':
- print '--> milc'
+ print('--> milc')
process = spec06_benchmarks.milc
elif options.benchmark == 'zeusmp':
- print '--> zeusmp'
+ print('--> zeusmp')
process = spec06_benchmarks.zeusmp
elif options.benchmark == 'gromacs':
- print '--> gromacs'
+ print('--> gromacs')
process = spec06_benchmarks.gromacs
elif options.benchmark == 'cactusADM':
- print '--> cactusADM'
+ print('--> cactusADM')
process = spec06_benchmarks.cactusADM
elif options.benchmark == 'leslie3d':
- print '--> leslie3d'
+ print('--> leslie3d')
process = spec06_benchmarks.leslie3d
elif options.benchmark == 'namd':
- print '--> namd'
+ print('--> namd')
process = spec06_benchmarks.namd
elif options.benchmark == 'gobmk':
- print '--> gobmk'
+ print('--> gobmk')
process = spec06_benchmarks.gobmk
elif options.benchmark == 'dealII':
- print '--> dealII'
+ print('--> dealII')
process = spec06_benchmarks.dealII
elif options.benchmark == 'soplex':
- print '--> soplex'
+ print('--> soplex')
process = spec06_benchmarks.soplex
elif options.benchmark == 'povray':
- print '--> povray'
+ print('--> povray')
process = spec06_benchmarks.povray
elif options.benchmark == 'calculix':
- print '--> calculix'
+ print('--> calculix')
process = spec06_benchmarks.calculix
elif options.benchmark == 'hmmer':
- print '--> hmmer'
+ print('--> hmmer')
process = spec06_benchmarks.hmmer
elif options.benchmark == 'sjeng':
- print '--> sjeng'
+ print('--> sjeng')
process = spec06_benchmarks.sjeng
elif options.benchmark == 'GemsFDTD':
- print '--> GemsFDTD'
+ print('--> GemsFDTD')
process = spec06_benchmarks.GemsFDTD
elif options.benchmark == 'libquantum':
- print '--> libquantum'
+ print('--> libquantum')
process = spec06_benchmarks.libquantum
elif options.benchmark == 'h264ref':
- print '--> h264ref'
+ print('--> h264ref')
process = spec06_benchmarks.h264ref
elif options.benchmark == 'tonto':
- print '--> tonto'
+ print('--> tonto')
process = spec06_benchmarks.tonto
elif options.benchmark == 'lbm':
- print '--> lbm'
+ print('--> lbm')
process = spec06_benchmarks.lbm
elif options.benchmark == 'omnetpp':
- print '--> omnetpp'
+ print('--> omnetpp')
process = spec06_benchmarks.omnetpp
elif options.benchmark == 'astar':
- print '--> astar'
+ print('--> astar')
process = spec06_benchmarks.astar
elif options.benchmark == 'wrf':
- print '--> wrf'
+ print('--> wrf')
process = spec06_benchmarks.wrf
elif options.benchmark == 'sphinx3':
- print '--> sphinx3'
+ print('--> sphinx3')
process = spec06_benchmarks.sphinx3
elif options.benchmark == 'xalancbmk':
- print '--> xalancbmk'
+ print('--> xalancbmk')
process = spec06_benchmarks.xalancbmk
elif options.benchmark == 'specrand_i':
- print '--> specrand_i'
+ print('--> specrand_i')
process = spec06_benchmarks.specrand_i
elif options.benchmark == 'specrand_f':
- print '--> specrand_f'
+ print('--> specrand_f')
process = spec06_benchmarks.specrand_f
else:
- print "No recognized SPEC2006 benchmark selected! Exiting."
+ print("No recognized SPEC2006 benchmark selected! Exiting.")
sys.exit(1)
else:
- print >> sys.stderr, "Need --benchmark switch to specify SPEC CPU2006 workload. Exiting!\n"
+ print("Need --benchmark switch to specify SPEC CPU2006 workload. Exiting!\n",
+ file=sys.stderr)
sys.exit(1)
# Set process stdout/stderr
if options.benchmark_stdout:
process.output = options.benchmark_stdout
- print "Process stdout file: " + process.output
+ print("Process stdout file: " + process.output)
if options.benchmark_stderr:
process.errout = options.benchmark_stderr
- print "Process stderr file: " + process.errout
+ print("Process stderr file: " + process.errout)
#if options.bench:
# apps = options.bench.split("-")
@@ -333,22 +334,22 @@ if is_kvm_cpu(CPUClass) or is_kvm_cpu(FutureClass):
fatal("KvmCPU can only be used in SE mode with x86")
# Sanity check
-if options.fastmem:
- if CPUClass != AtomicSimpleCPU:
- fatal("Fastmem can only be used with atomic CPU!")
- if (options.caches or options.l2cache):
- fatal("You cannot use fastmem in combination with caches!")
-
-if options.simpoint_profile:
- if not options.fastmem:
- # Atomic CPU checked with fastmem option already
- fatal("SimPoint generation should be done with atomic cpu and fastmem")
- if np > 1:
- fatal("SimPoint generation not supported with more than one CPUs")
+#if options.fastmem:
+# if CPUClass != AtomicSimpleCPU:
+# fatal("Fastmem can only be used with atomic CPU!")
+# if (options.caches or options.l2cache):
+# fatal("You cannot use fastmem in combination with caches!")
+#
+#if options.simpoint_profile:
+# if not options.fastmem:
+# # Atomic CPU checked with fastmem option already
+# fatal("SimPoint generation should be done with atomic cpu and fastmem")
+# if np > 1:
+# fatal("SimPoint generation not supported with more than one CPUs")
for i in xrange(np):
system.cpu[i].workload = process
- print process.cmd
+ print(process.cmd)
#if options.smt:
# system.cpu[i].workload = multiprocesses
@@ -357,14 +358,14 @@ for i in xrange(np):
#else:
# system.cpu[i].workload = multiprocesses[i]
- if options.fastmem:
- system.cpu[i].fastmem = True
-
- if options.simpoint_profile:
- system.cpu[i].addSimPointProbe(options.simpoint_interval)
-
- if options.checker:
- system.cpu[i].addCheckerCpu()
+# if options.fastmem:
+# system.cpu[i].fastmem = True
+#
+# if options.simpoint_profile:
+# system.cpu[i].addSimPointProbe(options.simpoint_interval)
+#
+# if options.checker:
+# system.cpu[i].addCheckerCpu()
system.cpu[i].createThreads()