Hi All,

I am trying to modify the se.py config to handle multi-programmed workload to different cpu. What I did is add an option to Options.py and then added some code in se.py but I get a invalid syntax error from python (see below). I've also found this thread where this problem was posted, but no one posted any solutions (http://www.mail-archive.com/[email protected]/msg03832.html). Please help!!


The Error:
-----------------------------
File "<string>", line 1, in <module>
File "/home/zpwu/Documents/repo/Gem5/gem5-new/src/python/m5/main.py", line 331, in main
    filecode = compile(filedata, filename, 'exec')
  File "configs/example/se.py", line 104
    for num in xrange(4)
      ^
SyntaxError: invalid syntax
-------------------------------


Here is part of the code I added, it's right below the options.cmd case:
--------------------
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)
---------------------------------------------

Thank You



_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to