From ec0512af6bbb8ba05eb13fc1aac7754283dd13aa Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Tue, 20 Oct 2020 18:20:39 -0400 Subject: 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. --- run_dis_cache_vs_wss.sh | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 run_dis_cache_vs_wss.sh (limited to 'run_dis_cache_vs_wss.sh') 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 @@ +#!/bin/bash +# Run baselines for all the DIS tasks +if [ "$EUID" -ne 0 ] +then + echo "You need to be root to enable cache way and interrupt isolation!" + exit +fi + +if uname -a | grep -q "mc2"; then + echo "MC^2 detected! Cache isolation will be enabled" + iso="i" +else + echo "MC^2 not detected." + iso="xi" +fi + +cd dis + +WSSS=WSSS_maxstride2mb +caches=caches_all +# Consider re-enabling this only if you're interested in exploring bandwidth effects +#./setup_mem_and_global.sh +if [[ $1 == "--contend" ]]; then + echo "Will run 6 contending tasks" + echo "Files will be named $datestring--10-c-"$iso".txt" + echo "Please verify the above settings. Press enter to continue..." + read + echo "field" > /tmp/disNames.txt + ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10 + ./postproc.sh $datestring-field-10-c-$iso + echo "matrix" > /tmp/disNames.txt + ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10 + ./postproc.sh $datestring-matrix-10-c-$iso + echo "neighborhood" > /tmp/disNames.txt + ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10 + ./postproc.sh $datestring-neighborhood-10-c-$iso + echo "pointer" > /tmp/disNames.txt + ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10 + ./postproc.sh $datestring-pointer-10-c-$iso + echo "transitive" > /tmp/disNames.txt + ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10 + ./postproc.sh $datestring-transitive-10-c-$iso + echo "update" > /tmp/disNames.txt + ../run_bench.sh -p 15 -B -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10 + ./postproc.sh $datestring-update-10-c-$iso +else + echo "Will run no contending tasks (use --contend for contending tasks)" + echo "Files will be named $datestring--10-xc-"$iso".txt" + echo "Please verify the above settings. Press enter to continue..." + read + echo "field" > /tmp/disNames.txt + ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 field-10 + ./postproc.sh $datestring-field-10-xc-$iso + echo "matrix" > /tmp/disNames.txt + ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 matrix-10 + ./postproc.sh $datestring-matrix-10-xc-$iso + echo "neighborhood" > /tmp/disNames.txt + ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 neighborhood-10 + ./postproc.sh $datestring-neighborhood-10-xc-$iso + echo "pointer" > /tmp/disNames.txt + ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 pointer-10 + ./postproc.sh $datestring-pointer-10-xc-$iso + echo "transitive" > /tmp/disNames.txt + ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 transitive-10 + ./postproc.sh $datestring-transitive-10-xc-$iso + echo "update" > /tmp/disNames.txt + ../run_bench.sh -p 15 -l 10 -b /tmp/disNames.txt -W WSSS -C caches -T in0 update-10 + ./postproc.sh $datestring-update-10-xc-$iso +fi -- cgit v1.2.2