summaryrefslogtreecommitdiffstats
path: root/baseline/run_baseline.sh
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2020-05-26 21:38:52 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2020-05-26 21:51:16 -0400
commitb0a383d5bd705e9e38b38e6a3ec00eb53166f1b6 (patch)
treec6a574719690eb62d5a85d5db72d10d3d047dd16 /baseline/run_baseline.sh
parent4f1aa00f177646b5129304a7d587658aad949946 (diff)
Code cleanup and bugfixes for infrastructure code
- Remove unused parameters to extra.h - Use floats to avoid integer overflow when timing long loops - Only include litmus headers and/or MMDC headers if the appropriate define is set in extra.h - Update job parameters to match those used in my PRP experiments
Diffstat (limited to 'baseline/run_baseline.sh')
-rwxr-xr-xbaseline/run_baseline.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/baseline/run_baseline.sh b/baseline/run_baseline.sh
index 7fdc2aa..f7a98fa 100755
--- a/baseline/run_baseline.sh
+++ b/baseline/run_baseline.sh
@@ -49,7 +49,12 @@ done < $tacleNames
49num_tests=$(wc -l < $tacleNames) 49num_tests=$(wc -l < $tacleNames)
50for (( i = 0; i < $num_tests ; i++ )) 50for (( i = 0; i < $num_tests ; i++ ))
51do 51do
52 chrt -r 97 taskset -c $core ./bin/${tacleProg[$i]} ${tacleProg[$i]} $maxJobs $core none none $runID 1 none 52 # Check if we're using LITMUS^RT or not
53 if grep -q "#define LITMUS 1" source/extra.h; then
54 ./bin/${tacleProg[$i]} ${tacleProg[$i]} $maxJobs $core $runID 1
55 else
56 chrt -r 97 taskset -c $core ./bin/${tacleProg[$i]} ${tacleProg[$i]} $maxJobs $core $runID 1
57 fi
53 echo COMPLETE: ${tacleProg[$i]} 58 echo COMPLETE: ${tacleProg[$i]}
54done 59done
55 60