blob: 2a7991e33cff77c4f43e612988a1a5980c3066fd (
plain) (
tree)
|
|
#!/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
if [[ $1 == "--contend" ]]; then
echo "Will run 6 contending tasks"
echo "Files will be named $datestring-<benchmark name>-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-<benchmark name>-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
|