summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2021-03-08 19:27:22 -0500
committerJoshua Bakita <jbakita@cs.unc.edu>2021-03-08 19:27:22 -0500
commit797a8e9b732cd93e907a97ab75ebbc1742031bd2 (patch)
tree08bcf96441148b0da7789891f3488f7f4bb31f2b
parent30a82090ec1fe3292881da931a320ea3a168cfba (diff)
Case Study: Temporary paired task workaround
-rwxr-xr-xrun_case_study.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/run_case_study.py b/run_case_study.py
index 86c6775..0b2f61c 100755
--- a/run_case_study.py
+++ b/run_case_study.py
@@ -192,8 +192,8 @@ def main(pathName):
192 addpid(pid_str) 192 addpid(pid_str)
193 else: 193 else:
194 if suite1 == "TACLe": 194 if suite1 == "TACLe":
195 binary1 = "./all_pairs/bin/" + name1 195 binary1 = "./baseline/bin/" + name1
196 binary2 = "./all_pairs/bin/" + name2 196 binary2 = "./baseline/bin/" + name2
197 elif suite1 == "SD-VBS": 197 elif suite1 == "SD-VBS":
198 binary1 = "./SD-VBS/" + name1 + "_qcif_all" 198 binary1 = "./SD-VBS/" + name1 + "_qcif_all"
199 binary2 = "./SD-VBS/" + name2 + "_qcif_all" 199 binary2 = "./SD-VBS/" + name2 + "_qcif_all"
@@ -212,8 +212,9 @@ def main(pathName):
212 print("ERROR: Part of the pair containing task IDs {} and {} is already running! Did you end the previous case study?".format(lookupID1, lookupID2)) 212 print("ERROR: Part of the pair containing task IDs {} and {} is already running! Did you end the previous case study?".format(lookupID1, lookupID2))
213 return 1 213 return 1
214 # Arg format: <unique name> <infinite loops> <core> <0 other core> <NULL other name> <NULL runID> <no output> <pairID> <period> <crit lvl> 214 # Arg format: <unique name> <infinite loops> <core> <0 other core> <NULL other name> <NULL runID> <no output> <pairID> <period> <crit lvl>
215 arg1 = " " + lookupID1 + " -1 " + core + " 0 NULL NULL 0 " + str(pairID) + " " + period1 + " " + criticality 215 # XXX XXX XXX: FIXME when LITMUS is fixed
216 arg2 = " " + lookupID2 + " -1 " + thread + " 0 NULL NULL 0 " + str(pairID) + " " + period2 + " " + criticality 216 arg1 = " " + lookupID1 + " -1 " + core + " NULL 0 " + period1 + " " + criticality
217 arg2 = " " + lookupID2 + " -1 " + thread + " NULL 0 " + period2 + " " + criticality
217 bench_tsk1 = subprocess.Popen(input_cmd[name1] + " | numactl --membind=0 " + binary1 + arg1, shell=True, executable='/bin/bash') 218 bench_tsk1 = subprocess.Popen(input_cmd[name1] + " | numactl --membind=0 " + binary1 + arg1, shell=True, executable='/bin/bash')
218 bench_tsk2 = subprocess.Popen(input_cmd[name2] + " | numactl --membind=1 " + binary2 + arg2, shell=True, executable='/bin/bash') 219 bench_tsk2 = subprocess.Popen(input_cmd[name2] + " | numactl --membind=1 " + binary2 + arg2, shell=True, executable='/bin/bash')
219 # Find benchmark PID (avoid getting shell or numactl PID) 220 # Find benchmark PID (avoid getting shell or numactl PID)