Hi Nifan,
you can dig the code in configs/examples/se.py. In particular, the
following segmentation you should take care. Note that "multiprocesses"
are the workload assigned to each core (in your case, two processes
should be created and assigned to two cores). The "else" branch create a
process where you can specify the SPEC2006 binary (process.executable),
command (process.cmd), input (process.input), output(process.output) and
so forth.
You may also refer to http://www.gem5.org/SPEC2006_benchmarks
(Mybench.py) for how to configure a process.
=================================
multiprocesses = []
apps = []
if options.bench:
apps = options.bench.split("-")
if len(apps) != options.num_cpus:
print "number of benchmarks not equal to set num_cpus!"
sys.exit(1)
for app in apps:
try:
if buildEnv['TARGET_ISA'] == 'alpha':
exec("workload = %s('alpha', 'tru64', 'ref')" % app)
else:
exec("workload = %s(buildEnv['TARGET_ISA'], 'linux', 'ref')" % app)
multiprocesses.append(workload.makeLiveProcess())
except:
print >>sys.stderr, "Unable to find workload for %s: %s" %
(buildEnv['TARGET_ISA'], app)
sys.exit(1)
else:
process = LiveProcess()
process.executable = options.cmd
process.cmd = [options.cmd] + options.options.split()
multiprocesses.append(process)
==================================
-Tao
On 11/12/2011 09:23 PM, [email protected] wrote:
Hi:
I want to run two different programs on two different cores in SE
mode, can anyone give me a simple example of the configure file?
thank you.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users