3 MACHINES2='dw-7.eecs.uci.edu'
4 MACHINES4='dw-9.eecs.uci.edu dw-5.eecs.uci.edu dw-7.eecs.uci.edu'
5 LOGDIR=/home/adash/research/Robust/src/Benchmarks/Prefetch/runlog
11 while [ $i -lt $1 ]; do
12 echo "$DIR" > ~/.tmpdir
13 echo "bin=$3" > ~/.tmpvars
27 for machine in `echo $MACHINES`
29 ssh ${machine} 'cd `cat ~/.tmpdir`; source ~/.tmpvars; ./$bin' &
33 /usr/bin/time -f "%e" ./$3 master $arg 2>> ${LOGDIR}/${3}.txt
34 echo "Terminating ... "
35 for machine in `echo $MACHINES`
37 ssh ${machine} 'source ~/.tmpvars; killall $bin'
45 while [ $i -lt $1 ]; do
47 /usr/bin/time -f "%e" ./${NONPREFETCH} master $ARGS1 2>> ${LOGDIR}/${NONPREFETCH}.txt
49 #avg=`cat ${LOGDIR}/${NONPREFETCH}.txt | awk '{sum+=$1} END {print sum/NR}'`
50 #sort -nr ${LOGDIR}/${NONPREFETCH}.txt | tail -1
51 #sort -nr ${LOGDIR}/${NONPREFETCH}.txt | tail -1
57 PREFETCH=${BENCHMARK}1.bin
58 NONPREFETCH=${BENCHMARK}1NP.bin
59 PREFETCH2=${BENCHMARK}2.bin
60 NONPREFETCH2=${BENCHMARK}2NP.bin
61 PREFETCH4=${BENCHMARK}4.bin
62 NONPREFETCH4=${BENCHMARK}4NP.bin
65 # echo "---------- Running local $BMDIR non-prefetch ---------- "
68 echo "---------- Running remote $BMDIR non-prefetch 1 thread 2 machines ---------- "
70 echo "---------- Running remote $BMDIR prefetch 1 thread 2 machines ---------- "
73 # echo "---------- Running remote $BMDIR non-prefetch 2 machines ---------- "
74 # run 5 2 $NONPREFETCH2
75 # echo "---------- Running remote $BMDIR prefetch 2 machines ---------- "
78 # echo "---------- Running remote $BMDIR non-prefetch 4 machines ---------- "
79 # run 5 4 $NONPREFETCH4
80 # echo "---------- Running remote $BMDIR prefetch 4 machines ---------- "
85 benchmarks='MatrixMultiply JGFSORBenchSizeA Em3d'
87 for b in `echo $benchmarks`
90 BENCHMARK=`echo $bm | cut -f1 -d":"`
91 BMDIR=`echo $bm | cut -f2 -d":"`
92 ARGS1=`echo $bm | cut -f3 -d":"`
93 ARGS2=`echo $bm | cut -f4 -d":"`
94 ARGS4=`echo $bm | cut -f5 -d":"`