summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayneel Gandhi <jayneel@cs.wisc.edu>2012-04-17 16:12:41 -0500
committerJayneel Gandhi <jayneel@cs.wisc.edu>2012-04-17 16:12:41 -0500
commit7aa57ac882507f00fded32539dc1adb6998e89ad (patch)
treed62e8819e820799e4fe881615a84fb4ee4bd91bc
parentb5b9d2ad3ead8d0bf06e4546ca7fdd41445b6d2b (diff)
downloadgem5-7aa57ac882507f00fded32539dc1adb6998e89ad.tar.xz
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.
-rw-r--r--configs/example/se.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/configs/example/se.py b/configs/example/se.py
index 853947475..855c685c8 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -160,7 +160,10 @@ if options.fastmem and (options.caches or options.l2cache):
fatal("You cannot use fastmem in combination with caches!")
for i in xrange(np):
- system.cpu[i].workload = multiprocesses[i]
+ if len(multiprocesses) == 1:
+ system.cpu[i].workload = multiprocesses[0]
+ else:
+ system.cpu[i].workload = multiprocesses[i]
if options.fastmem:
system.cpu[0].fastmem = True