From 649917411554032c10c695a9b5d51abd858320e5 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Wed, 16 Sep 2009 09:46:26 -0400 Subject: 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. --- configs/example/se.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'configs/example/se.py') diff --git a/configs/example/se.py b/configs/example/se.py index 67a2340ce..e7fcc8261 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -94,8 +94,9 @@ if options.errout != "": # 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 @@ if options.detailed: 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 -- cgit v1.2.3