4 MACHINES2='dw-11.eecs.uci.edu'
5 MACHINES3='dw-11.eecs.uci.edu dw-12.eecs.uci.edu'
6 MACHINES4='dw-11.eecs.uci.edu dw-12.eecs.uci.edu dw-13.eecs.uci.edu'
7 MACHINES5='dw-11.eecs.uci.edu dw-12.eecs.uci.edu dw-13.eecs.uci.edu dw-14.eecs.uci.edu'
8 LOGDIR=/home/adash/research/Robust/src/Benchmarks/Prefetch/runlog
14 while [ $i -lt $1 ]; do
15 echo "$DIR" > ~/.tmpdir
16 echo "bin=$3" > ~/.tmpvars
34 for machine in `echo $MACHINES`
36 ssh ${machine} 'cd `cat ~/.tmpdir`; source ~/.tmpvars; ./$bin' &
40 /usr/bin/time -f "%e" ./$3 master $arg 2>> ${LOGDIR}/${3}.txt
41 echo "Terminating ... "
42 for machine in `echo $MACHINES`
44 ssh ${machine} 'source ~/.tmpvars; killall $bin'
53 while [ $i -lt $1 ]; do
54 /usr/bin/time -f "%e" ./${NONPREFETCH} master $ARGS1 2>> ${LOGDIR}/${NONPREFETCH}_local.txt
61 NONPREFETCH=${BENCHMARK}1NP.bin
62 NONPREFETCH2=${BENCHMARK}2NP.bin
63 NONPREFETCH3=${BENCHMARK}3NP.bin
64 NONPREFETCH4=${BENCHMARK}4NP.bin
65 NONPREFETCH5=${BENCHMARK}5NP.bin
67 echo "---------- Running ${BENCHMARK} local non-prefetch on 1 machine ---------- "
70 echo "---------- Running ${BENCHMARK} two threads non-prefetch on 2 machines ---------- "
72 echo "---------- Running ${BENCHMARK} three threads non-prefetch on 3 machines ---------- "
74 echo "---------- Running ${BENCHMARK} four threads non-prefetch on 4 machines ---------- "
76 echo "---------- Running ${BENCHMARK} five threads non-prefetch on 5 machines ---------- "
82 benchmarks='rarray rao warray wao'
84 echo "---------- Clean old files ---------- "
86 for b in `echo $benchmarks`
89 BENCHMARK=`echo $bm | cut -f1 -d":"`
90 ARGS1=`echo $bm | cut -f2 -d":"`
91 ARGS2=`echo $bm | cut -f3 -d":"`
92 ARGS3=`echo $bm | cut -f4 -d":"`
93 ARGS4=`echo $bm | cut -f5 -d":"`
94 ARGS5=`echo $bm | cut -f6 -d":"`
95 EXTENSION=`echo $bm | cut -f7 -d":"`
99 #----------Calulates the averages -----------
100 for file in `ls ../runlog/*.txt`
102 echo -n $file >> average.txt
103 cat $file | awk '{sum += $1} END {print " "sum/NR}' >> average.txt
105 echo "===========" >> average.txt
106 echo "" >> average.txt