summaryrefslogtreecommitdiffstats
path: root/run_dis_cache_vs_wss.sh
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2020-10-20 18:20:39 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-20 18:23:06 -0400
commitec0512af6bbb8ba05eb13fc1aac7754283dd13aa (patch)
tree17b31bba227776734555f9dde3ad17aa39aa54f4 /run_dis_cache_vs_wss.sh
parentdd606a16e840880e7617b140f6083af8ea83b6b7 (diff)
Unify unpaired timing scripts for DIS, TACLe, and SD-VBS
Now supports specifying an input generation command for each benchmark - see dis/dis2MbInNames.txt for an example.
Diffstat (limited to 'run_dis_cache_vs_wss.sh')
-rwxr-xr-xrun_dis_cache_vs_wss.sh69
1 files changed, 69 insertions, 0 deletions
diff --git a/run_dis_cache_vs_wss.sh b/run_dis_cache_vs_wss.sh
new file mode 100755
index 0000000..46a12ff
--- /dev/null
+++ b/run_dis_cache_vs_wss.sh
@@ -0,0 +1,69 @@
1#!/bin/bash
2# Run baselines for all the DIS tasks
3if [ "$EUID" -ne 0 ]
4then
5 echo "You need to be root to enable cache way and interrupt isolation!"
6 exit
7fi
8
9if uname -a | grep -q "mc2"; then
10 echo "MC^2 detected! Cache isolation will be enabled"
11 iso="i"
12else
13 echo "MC^2 not detected."
14 iso="xi"
15fi
16
17cd dis
18
19WSSS=WSSS_maxstride2mb
20caches=caches_all
21# Consider re-enabling this only if you're interested in exploring bandwidth effects
22#./setup_mem_and_global.sh
23if [[ $1 == "--contend" ]]; then
24 echo "Will run 6 contending tasks"
25 echo "Files will be named $datestring-<benchmark name>-10-c-"$iso".txt"
26 echo "Please verify the above settings. Press enter to continue..."
27 read
28 echo "field" > /tmp/disNames.txt
29 ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10
30 ./postproc.sh $datestring-field-10-c-$iso
31 echo "matrix" > /tmp/disNames.txt
32 ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10
33 ./postproc.sh $datestring-matrix-10-c-$iso
34 echo "neighborhood" > /tmp/disNames.txt
35 ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10
36 ./postproc.sh $datestring-neighborhood-10-c-$iso
37 echo "pointer" > /tmp/disNames.txt
38 ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10
39 ./postproc.sh $datestring-pointer-10-c-$iso
40 echo "transitive" > /tmp/disNames.txt
41 ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10
42 ./postproc.sh $datestring-transitive-10-c-$iso
43 echo "update" > /tmp/disNames.txt
44 ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10
45 ./postproc.sh $datestring-update-10-c-$iso
46else
47 echo "Will run no contending tasks (use --contend for contending tasks)"
48 echo "Files will be named $datestring-<benchmark name>-10-xc-"$iso".txt"
49 echo "Please verify the above settings. Press enter to continue..."
50 read
51 echo "field" > /tmp/disNames.txt
52 ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10
53 ./postproc.sh $datestring-field-10-xc-$iso
54 echo "matrix" > /tmp/disNames.txt
55 ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10
56 ./postproc.sh $datestring-matrix-10-xc-$iso
57 echo "neighborhood" > /tmp/disNames.txt
58 ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10
59 ./postproc.sh $datestring-neighborhood-10-xc-$iso
60 echo "pointer" > /tmp/disNames.txt
61 ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10
62 ./postproc.sh $datestring-pointer-10-xc-$iso
63 echo "transitive" > /tmp/disNames.txt
64 ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10
65 ./postproc.sh $datestring-transitive-10-xc-$iso
66 echo "update" > /tmp/disNames.txt
67 ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10
68 ./postproc.sh $datestring-update-10-xc-$iso
69fi