From c03c2a1e1d09b7248189bd9d8318adc71c7563cf Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Mon, 30 Jan 2012 13:19:36 +0100 Subject: [PATCH] added autocompile step. --- prefix/runAll.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/prefix/runAll.sh b/prefix/runAll.sh index 92bcf2d..79cb6ca 100755 --- a/prefix/runAll.sh +++ b/prefix/runAll.sh @@ -13,39 +13,39 @@ if [ ! -f numlist.bin ]; then dd if=/dev/urandom of=numlist.bin bs=1000 count=100000 fi +if [ ! -e build ]; then + echo "compiling" + make +fi + STARTTS="`date --iso-8601=minutes`" SCHEDULING="static dynamic guided runtime" ALGORITHMS="seq datapar recurse hillis_sum hillis_partial" -RUNLIST="$(seq 0 250000 1000000) $(seq 0 2500000 10000000)" -# $(seq 0 25000000 100000000)" +RUNLIST="$(seq 0 250000 1000000) $(seq 0 2500000 10000000) $(seq 0 25000000 100000000)" -#TODO: siehe oben echo "STARTING: stats/raw/${STARTTS}" mkdir -p "stats/raw/${STARTTS}" for sched in $SCHEDULING; do - echo "***** sched: ${sched} *****" + echo "***** sched: ${sched} *****" OMP_SCHEDULE=sched ulimit -s unlimited for algo in $ALGORITHMS; do - echo "*** algo: ${algo} ***" - for i in $RUNLIST; do + echo "*** algo: ${algo} ***" + for i in $RUNLIST; do if [ "$i" -eq "0" ] ; then echo "* ignoring 0 run *" else - build/$algo -n $i > "stats/raw/tmp" 2> /dev/null + build/$algo -n $i > "stats/raw/tmp" 2> /dev/null cat "stats/raw/tmp" mv stats/raw/tmp "stats/raw/${STARTTS}/${sched}_${algo}_n${i}" fi - done + done done done -echo "stats generation does not work - exitting" -exit 0 - cd stats ./parseDat.py -echo "done - hit ENTER to exit" -read +echo "done" + -- 2.43.0