Hello developers,

I am trying run Multiples CPUs for SPARC_SE. It simulated one
"Hello world" and then ticked for more cycles. It looks like it instantiate
four cpus, but cannot run the workloads for other cpus.

But I am able to run four workloads (simple hello world) in four cpus for
ALPHA_SE with similar script.

Following lines are the CL outputs for both ALPHA and SPARC. Also, some
parts of the script is mentioned. Did somebody tested SPARC_SE for multiple
cpus?

Thanks,
Mohammad A Qayum
PhD Student
NMSU

gem5 compiled Feb  9 2012 16:11:57
gem5 started Apr  4 2012 13:20:21
gem5 executing on spaniel.nmsu.edu
command line: build/ALPHA_SE/gem5.debug --stats-file=lbm-2-identical.txt
configs/example/ncpu.py -d --num-cpus 4 --caches --l2cache
Global frequency set at 1000000000000 ticks per second
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
0: system.remote_gdb.listener: listening for remote gdb #1 on port 7001
0: system.remote_gdb.listener: listening for remote gdb #2 on port 7002
0: system.remote_gdb.listener: listening for remote gdb #3 on port 7003
info: Entering event queue @ 0.  Starting simulation...
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
Hello world!
Hello world!
Hello world!
Hello world!
hack: be nice to actually delete the event here
Simulation reached tick 16650500
Exit @ tick 16650500 because target called exit()
[nafiul@spaniel gem5-stable-549b72de8f72]$ ./multisparc
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Feb  9 2012 15:35:38
gem5 started Apr  4 2012 13:20:30
gem5 executing on spaniel.nmsu.edu
command line: build/SPARC_SE/gem5.debug --stats-file=hello-4-identical.txt
configs/example/ncpusparc.py -d --num-cpus 2 --caches --l2cache
Global frequency set at 1000000000000 ticks per second
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
0: system.remote_gdb.listener: listening for remote gdb #1 on port 7001
info: Entering event queue @ 0.  Starting simulation...
Hello World!hack: be nice to actually delete the event here
info: Entering event queue @ 17111000.  Starting simulation...
^Cinfo: Entering event queue @ 1694126500.  Starting simulation...
^Cinfo: Entering event queue @ 1793795000.  Starting simulation...
info: Entering event queue @ 3793795000.  Starting simulation...
info: Entering event queue @ 5793795000.  Starting simulation...
info: Entering event queue @ 7793795000.  Starting simulation...


###Partial script for multiple CPU SPARC_SE



system.cpu[i].icache_port = system.ruby._cpu_ruby_ports[i].port
system.cpu[i].dcache_port = system.ruby._cpu_ruby_ports[i].port

if options.fastmem:
system.cpu[0].physmem_port = system.physmem.port


for i in xrange(np):
p            = LiveProcess()
p.executable = benchmarks[i*2]
p.cmd        = benchmarks[(i*2)+1]
root.system.cpu[i].workload = p
root.system.cpu[i].max_insts_all_threads = 10000000

m5.instantiate()

while 1:
exit_event = m5.simulate(2000000000)
#  if exit_event != 'simulate() limit reached':
#    print 'Simulation reached tick', m5.curTick()
#    break

#print 'Exit @ tick', m5.curTick(), 'because', exit_event.getCause()

#Simulation.run(options, root, system, FutureClass)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to