changeset 0b72f4f7c814 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=0b72f4f7c814
description:
inorder-configs: update se.py
fix bug with 'numThreads=len(workloads)' which was counting characters
of command-line not counting threads as intended.
Update numThreads for inorder/o3 cases and default to 1 for all other
cases.
diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
configs/example/se.py | 8 +++++---
diffs (29 lines):
diff -r 59f08019c39a -r 0b72f4f7c814 configs/example/se.py
--- a/configs/example/se.py Wed Sep 16 09:45:30 2009 -0400
+++ b/configs/example/se.py Wed Sep 16 09:46:26 2009 -0400
@@ -94,8 +94,9 @@
# By default, set workload to path of user-specified binary
workloads = options.cmd
+numThreads = 1
-if options.detailed:
+if options.detailed or options.inorder:
#check for SMT workload
workloads = options.cmd.split(';')
if len(workloads) > 1:
@@ -124,11 +125,12 @@
smt_process.errout = errouts[smt_idx]
process += [smt_process, ]
smt_idx += 1
-
+ numThreads = len(workloads)
+
(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
CPUClass.clock = '2GHz'
-CPUClass.numThreads = len(workloads)
+CPUClass.numThreads = numThreads;
np = options.num_cpus
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev