From 92df3dcae6747e4410574e7bf1f14dd1c07c3471 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Fri, 29 Oct 2021 03:40:38 -0400 Subject: tmp 10/29 --- smt_analysis/libSMT.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'smt_analysis/libSMT.py') diff --git a/smt_analysis/libSMT.py b/smt_analysis/libSMT.py index c0b5178..881ef07 100755 --- a/smt_analysis/libSMT.py +++ b/smt_analysis/libSMT.py @@ -17,7 +17,7 @@ def assert_valid_input_files(names, on_fail): # @returns max_res May of benchmark to maximum execution time among all samples for that benchmark def load_baseline(f): # constants for columns of baseline data files - TOTAL_NS = 5 + TOTAL_NS = 9 BENCH_NAME = 0 SAMPLES = 4 @@ -65,8 +65,8 @@ def load_paired(file1, file2, benchmarkCount): START_N = 6 # Start nanoseconds END_S = 7 # End seconds END_N = 8 # End nanoseconds - RUN_ID = 9 - JOB_NUM = 10 + RUN_ID = 10 + JOB_NUM = 11 with open(file1) as f1: numJobs = int(f1.readline().split()[TRIALS]) @@ -101,7 +101,9 @@ def load_paired(file1, file2, benchmarkCount): end2 = int(lineArr2[END_S]) * 10**9 + int(lineArr2[END_N]) maxEnd = max(end1, end2) # Time actually co-scheduled is minEnd - maxStart, but Sims uses a different model - time[bench1][bench2][job_idx] = maxEnd - minStart + #time[bench1][bench2][job_idx] = maxEnd - minStart + time[bench1][bench2][job_idx] = end1-minStart + time[bench2][bench1][job_idx] = end2-minStart # Compute offset: if first job starts at t=0, when does second start? offset[bench1][bench2][job_idx] = abs(start2-start1) # Compute some running statistics -- cgit v1.2.2