From: adash Date: Tue, 10 Mar 2009 08:46:09 +0000 (+0000) Subject: make output files more legible in script X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=81152116d95b7e5c10ebfdbd103a34f18376ee4a;p=IRC.git make output files more legible in script --- diff --git a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/run.sh b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/run.sh index b39d4b32..1cb3bd0a 100755 --- a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/run.sh +++ b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/run.sh @@ -63,14 +63,15 @@ function run { echo "" done sleep 2 + echo ${3} # perl -x${TOPDIR} ${TOPDIR}/switch/fetch_stat.pl clear_stats settings=switch/clearsettings.txt - /usr/bin/time -f "%e" ./$3 master $arg 2> ${LOGDIR}/tmp + /usr/bin/time -f "%e" ./${3} master $arg 2> ${LOGDIR}/tmp # perl -x${TOPDIR} ${TOPDIR}/switch/fetch_stat.pl settings=switch/settings.txt - cat ${LOGDIR}/tmp >> ${LOGDIR}/${2}Thrd_${3}_${EXTENSION}.txt + cat ${LOGDIR}/tmp >> ${LOGDIR}/${3}_${2}Thrd_${EXTENSION}.txt if [ $i -eq 0 ];then echo "

Benchmark=${3} Thread=${2} Extension=${EXTENSION}


" > ${LOGDIR}/${3}_${EXTENSION}_${2}Thrd_a.html ;fi cat ${LOGDIR}/tmp >> ${LOGDIR}/${3}_${EXTENSION}_${2}Thrd_a.html -# echo "Network Stats
" >> ${LOGDIR}/${3}_${EXTENSION}_${2}Thrd_a.html -# mv ${TOPDIR}/html/dell.html ${LOGDIR}/${2}Thrd_${3}_${EXTENSION}_${i}.html +# echo "Network Stats
" >> ${LOGDIR}/${3}_${EXTENSION}_${2}Thrd_a.html +# mv ${TOPDIR}/html/dell.html ${LOGDIR}/${3}_${2}Thrd_${EXTENSION}_${i}.html echo "Terminating ... " for machine in `echo $MACHINES` do @@ -121,19 +122,20 @@ function callrun { cd $BMDIR echo "---------- Running local $BMDIR non-prefetch on 1 machine ---------- " - localrun 1 + # localrun 1 for count in 2 4 6 8 do echo "------- Running $count threads $BMDIR manual prefetch on $count machines -----" -run 1 $count $MANUAL_PREFETCH +run 1 $count ${MANUAL_PREFETCH} done cd $TOPDIR } -benchmarks='rainforest' +#benchmarks='rainforest' +benchmarks='moldynverB' echo "---------- Clean old files ---------- " rm runlog/* for b in `echo $benchmarks`