SE Config: Changed se.py to support multithreaded mode
Multithreaded programs did not run by just specifying the binary once on the command line of SE mode.The default mode is multi-programmed mode. Added check in SE mode to run multi-threaded programs in case only one program is specified with multiple CPUS. Default mode is still multi-programmed mode.
This commit is contained in:
parent
b5b9d2ad3e
commit
7aa57ac882
1 changed files with 4 additions and 1 deletions
|
@ -160,6 +160,9 @@ if options.fastmem and (options.caches or options.l2cache):
|
||||||
fatal("You cannot use fastmem in combination with caches!")
|
fatal("You cannot use fastmem in combination with caches!")
|
||||||
|
|
||||||
for i in xrange(np):
|
for i in xrange(np):
|
||||||
|
if len(multiprocesses) == 1:
|
||||||
|
system.cpu[i].workload = multiprocesses[0]
|
||||||
|
else:
|
||||||
system.cpu[i].workload = multiprocesses[i]
|
system.cpu[i].workload = multiprocesses[i]
|
||||||
|
|
||||||
if options.fastmem:
|
if options.fastmem:
|
||||||
|
|
Loading…
Reference in a new issue