summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2006-07-03 01:10:19 -0400
committerKorey Sewell <ksewell@umich.edu>2006-07-03 01:10:19 -0400
commit19083bc4ce379c03b39ba941c18b11a88b141e18 (patch)
tree839b9ef9efa9e8ab491ffa6f71d7dbb2d30973a8
parentcf58578ba120186947f382893d2e370bd6e436ce (diff)
downloadgem5-19083bc4ce379c03b39ba941c18b11a88b141e18.tar.xz
Added hook to check for SMT workloads. SMT is identified by adding a semicolon between
the workloads. Now SMT on the O3CPU can be invoked by "/ALPHA_SE/m5.debug ../configs/test/test.py -d --cmd="hello;hello" -i="file1;file2" I think I am a novice python magician now!!!!.... configs/test/test.py: Added hook to check for SMT workloads. SMT is identified by adding a semicolon between the workloads. Now SMT on the O3CPU can be invoked by "/ALPHA_SE/m5.debug ../configs/test/test.py -d --cmd="hello;hello" --input="file1;file2" (btw, We are back to working for this double hello world case) I am a novice python magician now!!!!.... --HG-- extra : convert_revision : b55e10dce33f5a9dc4c78f90409ec0912bad4292
-rw-r--r--configs/test/test.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/configs/test/test.py b/configs/test/test.py
index 3095cd1d1..625304a08 100644
--- a/configs/test/test.py
+++ b/configs/test/test.py
@@ -51,6 +51,25 @@ if options.timing and options.detailed:
if options.timing:
cpu = TimingSimpleCPU()
elif options.detailed:
+ #check for SMT workload
+ workloads = options.cmd.split(';')
+ if len(workloads) > 1:
+ process = []
+ smt_idx = 0
+ inputs = []
+
+ if options.input != "":
+ inputs = options.input.split(';')
+
+ for wrkld in workloads:
+ smt_process = LiveProcess()
+ smt_process.executable = os.path.join(this_dir, wrkld)
+ smt_process.cmd = wrkld + " " + options.options
+ if inputs and inputs[smt_idx]:
+ smt_process.input = inputs[smt_idx]
+ process += [smt_process, ]
+ smt_idx += 1
+
cpu = DetailedO3CPU()
else:
cpu = AtomicSimpleCPU()