diff options
-rw-r--r-- | SD-VBS/benchmarks/stitch/src/c/script_stitch.c | 12 | ||||
-rwxr-xr-x | all_pairs/bin/anagram | bin | 185080 -> 184928 bytes | |||
-rwxr-xr-x | all_pairs/bin/audiobeam | bin | 129064 -> 128912 bytes | |||
-rwxr-xr-x | all_pairs/bin/g723_enc | bin | 101816 -> 101664 bytes | |||
-rwxr-xr-x | all_pairs/bin/huff_dec | bin | 96112 -> 95960 bytes | |||
-rwxr-xr-x | baseline/bin/anagram | bin | 179832 -> 179680 bytes | |||
-rwxr-xr-x | baseline/bin/audiobeam | bin | 123816 -> 123664 bytes | |||
-rwxr-xr-x | baseline/bin/g723_enc | bin | 100656 -> 100504 bytes | |||
-rwxr-xr-x | baseline/bin/huff_dec | bin | 94944 -> 94792 bytes | |||
-rw-r--r-- | extra.h | 9 | ||||
-rw-r--r-- | run_case_study.py | 10 | ||||
-rw-r--r-- | sudo | 2 |
12 files changed, 18 insertions, 15 deletions
diff --git a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c index 9310048..472e231 100644 --- a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c +++ b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c | |||
@@ -23,12 +23,6 @@ int main(int argc, char* argv[]) | |||
23 | cols = Icur->width; | 23 | cols = Icur->width; |
24 | 24 | ||
25 | for_each_job { | 25 | for_each_job { |
26 | iFreeHandle(Icur); | ||
27 | fFreeHandle(v); | ||
28 | fFreeHandle(interestPnts); | ||
29 | fFreeHandle(int1); | ||
30 | fFreeHandle(int2); | ||
31 | fFreeHandle(Fcur); | ||
32 | v = harris(Icur); | 26 | v = harris(Icur); |
33 | interestPnts = getANMS(v, 24); | 27 | interestPnts = getANMS(v, 24); |
34 | int1 = fMallocHandle(interestPnts->height, 1); | 28 | int1 = fMallocHandle(interestPnts->height, 1); |
@@ -40,6 +34,12 @@ int main(int argc, char* argv[]) | |||
40 | } | 34 | } |
41 | 35 | ||
42 | Fcur = extractFeatures(Icur, int1, int2); | 36 | Fcur = extractFeatures(Icur, int1, int2); |
37 | iFreeHandle(Icur); | ||
38 | fFreeHandle(v); | ||
39 | fFreeHandle(interestPnts); | ||
40 | fFreeHandle(int1); | ||
41 | fFreeHandle(int2); | ||
42 | fFreeHandle(Fcur); | ||
43 | } | 43 | } |
44 | 44 | ||
45 | #ifdef CHECK | 45 | #ifdef CHECK |
diff --git a/all_pairs/bin/anagram b/all_pairs/bin/anagram index c2f4b84..4d3b54e 100755 --- a/all_pairs/bin/anagram +++ b/all_pairs/bin/anagram | |||
Binary files differ | |||
diff --git a/all_pairs/bin/audiobeam b/all_pairs/bin/audiobeam index 9caf6e9..5d00fa1 100755 --- a/all_pairs/bin/audiobeam +++ b/all_pairs/bin/audiobeam | |||
Binary files differ | |||
diff --git a/all_pairs/bin/g723_enc b/all_pairs/bin/g723_enc index b84f812..7ab3acb 100755 --- a/all_pairs/bin/g723_enc +++ b/all_pairs/bin/g723_enc | |||
Binary files differ | |||
diff --git a/all_pairs/bin/huff_dec b/all_pairs/bin/huff_dec index f00d796..b638a87 100755 --- a/all_pairs/bin/huff_dec +++ b/all_pairs/bin/huff_dec | |||
Binary files differ | |||
diff --git a/baseline/bin/anagram b/baseline/bin/anagram index d723b8a..be58ec0 100755 --- a/baseline/bin/anagram +++ b/baseline/bin/anagram | |||
Binary files differ | |||
diff --git a/baseline/bin/audiobeam b/baseline/bin/audiobeam index 52e5e05..cf776b4 100755 --- a/baseline/bin/audiobeam +++ b/baseline/bin/audiobeam | |||
Binary files differ | |||
diff --git a/baseline/bin/g723_enc b/baseline/bin/g723_enc index ce4ef00..7289895 100755 --- a/baseline/bin/g723_enc +++ b/baseline/bin/g723_enc | |||
Binary files differ | |||
diff --git a/baseline/bin/huff_dec b/baseline/bin/huff_dec index 39ca800..07d4d32 100755 --- a/baseline/bin/huff_dec +++ b/baseline/bin/huff_dec | |||
Binary files differ | |||
@@ -120,12 +120,12 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
120 | _rt_will_output = atoi(argv[7]); | 120 | _rt_will_output = atoi(argv[7]); |
121 | char *pairId; | 121 | char *pairId; |
122 | int end; | 122 | int end; |
123 | if (argc > 8) { | 123 | if (argc > 7) { |
124 | pairId = argv[8]; | 124 | pairId = argv[8]; |
125 | end = 8; | 125 | end = 9; |
126 | } else { | 126 | } else { |
127 | pairId = "none"; | 127 | pairId = "none"; |
128 | end = 9; | 128 | end = 8; |
129 | } | 129 | } |
130 | #else | 130 | #else |
131 | _rt_other_core = "none"; | 131 | _rt_other_core = "none"; |
@@ -204,7 +204,7 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
204 | #if LITMUS | 204 | #if LITMUS |
205 | _rt_period = strtoul(argv[end], NULL, 10); | 205 | _rt_period = strtoul(argv[end], NULL, 10); |
206 | unsigned int crit = atoi(argv[end+1]); | 206 | unsigned int crit = atoi(argv[end+1]); |
207 | unsigned int wait = 1; | 207 | unsigned int wait = 0; |
208 | if (be_migrate_to_domain(_rt_core) < 0) { | 208 | if (be_migrate_to_domain(_rt_core) < 0) { |
209 | perror("Unable to migrate to specified CPU"); | 209 | perror("Unable to migrate to specified CPU"); |
210 | exit(1); | 210 | exit(1); |
@@ -221,6 +221,7 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
221 | rt_param.release_policy = TASK_PERIODIC; | 221 | rt_param.release_policy = TASK_PERIODIC; |
222 | rt_param.budget_policy = NO_ENFORCEMENT; | 222 | rt_param.budget_policy = NO_ENFORCEMENT; |
223 | rt_param.cpu = _rt_core; | 223 | rt_param.cpu = _rt_core; |
224 | rt_param.release_policy = TASK_PERIODIC; | ||
224 | if (set_rt_task_param(gettid(), &rt_param) < 0) { | 225 | if (set_rt_task_param(gettid(), &rt_param) < 0) { |
225 | perror("Unable to set real-time parameters"); | 226 | perror("Unable to set real-time parameters"); |
226 | exit(1); | 227 | exit(1); |
diff --git a/run_case_study.py b/run_case_study.py index 7f0893a..345ad49 100644 --- a/run_case_study.py +++ b/run_case_study.py | |||
@@ -52,7 +52,7 @@ def main(): | |||
52 | ccx = "1" | 52 | ccx = "1" |
53 | else: | 53 | else: |
54 | ccx = "0" | 54 | ccx = "0" |
55 | continue | 55 | continue |
56 | if(row[0] != "task id" and row[0] != ""): | 56 | if(row[0] != "task id" and row[0] != ""): |
57 | row.append(ccx) | 57 | row.append(ccx) |
58 | if(threaded): | 58 | if(threaded): |
@@ -145,11 +145,11 @@ def main(): | |||
145 | 145 | ||
146 | run("sudo echo " + str(pid1) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") | 146 | run("sudo echo " + str(pid1) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") |
147 | run("sudo echo " + str(pid2) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") | 147 | run("sudo echo " + str(pid2) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") |
148 | exit(1) | 148 | #exit(1) |
149 | 149 | ||
150 | for task in levelC: | 150 | for task in levelC: |
151 | i+=1 | 151 | i+=1 |
152 | if(i>6): | 152 | if(i>8): |
153 | break | 153 | break |
154 | tid = int(task[0]) | 154 | tid = int(task[0]) |
155 | name = all_tasks[tid][2] | 155 | name = all_tasks[tid][2] |
@@ -170,9 +170,11 @@ def main(): | |||
170 | binary = "./baseline/bin/" + name1 + arg | 170 | binary = "./baseline/bin/" + name1 + arg |
171 | else: | 171 | else: |
172 | binary = dis_inputs[name1] + " | ./dis/" + name1 + "_all" + arg | 172 | binary = dis_inputs[name1] + " | ./dis/" + name1 + "_all" + arg |
173 | |||
174 | print(binary + " &") | ||
173 | proc = subprocess.Popen([binary + " &"], shell = True) | 175 | proc = subprocess.Popen([binary + " &"], shell = True) |
174 | pid = proc.pid | 176 | pid = proc.pid |
175 | os.system("sudo echo " + str(pid) + " > sudo /sys/fs/resctrl/level-ab-ccx-" + ccx + "/tasks") | 177 | run("sudo echo " + str(pid) + " > sudo /sys/fs/resctrl/level-ab-ccx-" + ccx + "/tasks") |
176 | #os.system("/playpen/mc2/liblitmus/release_ts") | 178 | #os.system("/playpen/mc2/liblitmus/release_ts") |
177 | #os.system("ls") | 179 | #os.system("ls") |
178 | if __name__ == "__main__": | 180 | if __name__ == "__main__": |
@@ -1 +1 @@ | |||
53322 /sys/fs/resctrl/level-ab-core-1/tasks | 101404 /sys/fs/resctrl/level-ab-ccx-1/tasks | ||