From: Korey Sewell Date: Wed, 16 Sep 2009 13:46:26 +0000 (-0400) Subject: inorder-configs: update se.py X-Git-Tag: stable_2012_02_02~1746 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=649917411554032c10c695a9b5d51abd858320e5;p=gem5.git 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. --- 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