Hi,

I am fairly new to gem5 as well but I managed to get this done by reading through this thread (http://www.digipedia.pl/usenet/thread/11778/1757/). You'll have to change the se.py script to run different workloads in different cpu. I am not sure what you mean by mesh technology though. Here is what I did, I added an option in Options.py (config/common/) and then added this code below the elif options.cmd case in se.py:

elif options.cmd:
 process = LiveProcess()
 process.executable = options.cmd
 process.cmd = [options.cmd] + options.options.split()
 multiprocesses.append(process)

elif options.multiprogram:
 executable = ["hello", "dealII", "bzip2", "mcf"]
cmd_list = [["hello"], ["dealII"], ["bzip2", "bzip-input.gif"], ["mcf", "mcf.in" ]]

 for num in xrange(4):
     proc = LiveProcess()
     proc.executable = executable[num]
     proc.cmd = cmd_list[num]
     multiprocesses.append(proc)

Quoting Tianyi Wang <[email protected]>:

Hi, all

I am new to gem5. Currently I want to do some experiments such that a task-graph like application running on a multi-core platform. I have read the latest tutorial and I am able to run some examples shown in the video.

Using one example to be specific: hello world.

I run the script:

build/ALPHA/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/alpha/linux/hello, and I got the result with no problem.

My questions is if I want to run four "hello world" instances on four different cores with mesh topology, how can I do that? I try to use option --topology=Mesh, however, it seems that se.py didn't support this option. Do I need to use some other scripts? Can anyone help me with this problem or any suggestion/advice would be appreciated?

Thanks,

Tianyi

_______________________________________________
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

Reply via email to