From 797a8e9b732cd93e907a97ab75ebbc1742031bd2 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Mon, 8 Mar 2021 19:27:22 -0500 Subject: Case Study: Temporary paired task workaround --- run_case_study.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'run_case_study.py') 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): addpid(pid_str) else: if suite1 == "TACLe": - binary1 = "./all_pairs/bin/" + name1 - binary2 = "./all_pairs/bin/" + name2 + binary1 = "./baseline/bin/" + name1 + binary2 = "./baseline/bin/" + name2 elif suite1 == "SD-VBS": binary1 = "./SD-VBS/" + name1 + "_qcif_all" binary2 = "./SD-VBS/" + name2 + "_qcif_all" @@ -212,8 +212,9 @@ def main(pathName): print("ERROR: Part of the pair containing task IDs {} and {} is already running! Did you end the previous case study?".format(lookupID1, lookupID2)) return 1 # Arg format: <0 other core> - arg1 = " " + lookupID1 + " -1 " + core + " 0 NULL NULL 0 " + str(pairID) + " " + period1 + " " + criticality - arg2 = " " + lookupID2 + " -1 " + thread + " 0 NULL NULL 0 " + str(pairID) + " " + period2 + " " + criticality + # XXX XXX XXX: FIXME when LITMUS is fixed + arg1 = " " + lookupID1 + " -1 " + core + " NULL 0 " + period1 + " " + criticality + arg2 = " " + lookupID2 + " -1 " + thread + " NULL 0 " + period2 + " " + criticality bench_tsk1 = subprocess.Popen(input_cmd[name1] + " | numactl --membind=0 " + binary1 + arg1, shell=True, executable='/bin/bash') bench_tsk2 = subprocess.Popen(input_cmd[name2] + " | numactl --membind=1 " + binary2 + arg2, shell=True, executable='/bin/bash') # Find benchmark PID (avoid getting shell or numactl PID) -- cgit v1.2.2