se.py (9907:8bddb3879c16) se.py (10037:5cac77888310)
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

130 apps = options.bench.split("-")
131 if len(apps) != options.num_cpus:
132 print "number of benchmarks not equal to set num_cpus!"
133 sys.exit(1)
134
135 for app in apps:
136 try:
137 if buildEnv['TARGET_ISA'] == 'alpha':
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

130 apps = options.bench.split("-")
131 if len(apps) != options.num_cpus:
132 print "number of benchmarks not equal to set num_cpus!"
133 sys.exit(1)
134
135 for app in apps:
136 try:
137 if buildEnv['TARGET_ISA'] == 'alpha':
138 exec("workload = %s('alpha', 'tru64', 'ref')" % app)
138 exec("workload = %s('alpha', 'tru64', '%s')" % (
139 app, options.spec_input))
140 elif buildEnv['TARGET_ISA'] == 'arm':
141 exec("workload = %s('arm_%s', 'linux', '%s')" % (
142 app, options.arm_iset, options.spec_input))
139 else:
143 else:
140 exec("workload = %s(buildEnv['TARGET_ISA'], 'linux', 'ref')" % app)
144 exec("workload = %s(buildEnv['TARGET_ISA', 'linux', '%s')" % (
145 app, options.spec_input))
141 multiprocesses.append(workload.makeLiveProcess())
142 except:
143 print >>sys.stderr, "Unable to find workload for %s: %s" % (buildEnv['TARGET_ISA'], app)
144 sys.exit(1)
145elif options.cmd:
146 multiprocesses, numThreads = get_processes(options)
147else:
148 print >> sys.stderr, "No workload specified. Exiting!\n"

--- 110 unchanged lines hidden ---
146 multiprocesses.append(workload.makeLiveProcess())
147 except:
148 print >>sys.stderr, "Unable to find workload for %s: %s" % (buildEnv['TARGET_ISA'], app)
149 sys.exit(1)
150elif options.cmd:
151 multiprocesses, numThreads = get_processes(options)
152else:
153 print >> sys.stderr, "No workload specified. Exiting!\n"

--- 110 unchanged lines hidden ---