scripts for automatically running javasingle versions of benchmarks
authoradash <adash>
Mon, 15 Dec 2008 18:20:37 +0000 (18:20 +0000)
committeradash <adash>
Mon, 15 Dec 2008 18:20:37 +0000 (18:20 +0000)
Robust/src/Benchmarks/Prefetch/bmlatest.txt [new file with mode: 0644]
Robust/src/Benchmarks/Prefetch/runlatest.sh [new file with mode: 0755]

diff --git a/Robust/src/Benchmarks/Prefetch/bmlatest.txt b/Robust/src/Benchmarks/Prefetch/bmlatest.txt
new file mode 100644 (file)
index 0000000..081bf63
--- /dev/null
@@ -0,0 +1,11 @@
+MatrixMultiplyN:MatrixMultiply/javasingle:1 200 30:200mmver
+MatrixMultiply:MatrixMultiply/javasingle:1 800:800mmver
+MatrixMultiply:MatrixMultiply/javasingle:1 600:mmver600
+fft2d:2DFFT/javasingle:1 1600:1600fft2d
+fft2d:2DFFT/javasingle:1 1152:1152fft2d
+Convolution:2DConv/javasingle:1 4096:40962dconv
+Convolution:2DConv/javasingle:1 8192:81922dconv
+Convolution:2DConv/javasingle:1 2048:20482dconv
+JGFMolDynBenchSizeA:Moldyn/javasingle:1:moldynverA
+JGFSORBenchSizeD:SOR/javasingle:1:sorverD
+Em3d:Em3d/javasingle:-T 1 -N 10000 -d 1000 -i 15:em3dver10000100015
diff --git a/Robust/src/Benchmarks/Prefetch/runlatest.sh b/Robust/src/Benchmarks/Prefetch/runlatest.sh
new file mode 100755 (executable)
index 0000000..2b0d4cb
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh 
+
+#set -x
+LOGDIR=/home/adash/research/Robust/src/Benchmarks/Prefetch/runlog
+TOPDIR=`pwd`
+function javasinglerun {
+  i=0;
+  while [ $i -lt $1 ]; do
+    /usr/bin/time -f "%e" ./${BENCHMARK}.bin $ARGS1 2>> ${LOGDIR}/${BENCHMARK}_javasingle_${EXTENSION}.txt
+    sleep 2
+    i=`expr $i + 1`
+  done
+}
+
+function callrun {
+ cd $BMDIR 
+
+  echo "---------- Running javasingle version $BMDIR on 1 machine ---------- "
+  javasinglerun 1 
+  cd $TOPDIR
+}
+
+########## Java single benchmarks #############
+benchmarks='40962dconv 20482dconv mmver600 moldynverA 1152fft2d'
+
+echo "---------- Clean old files ---------- "
+rm runlog/*
+for b in `echo $benchmarks`
+do
+  bm=`grep $b bmlatest.txt`
+  BENCHMARK=`echo $bm | cut -f1 -d":"`
+  BMDIR=`echo $bm | cut -f2 -d":"`
+  ARGS1=`echo $bm | cut -f3 -d":"`
+  EXTENSION=`echo $bm | cut -f4 -d":"`
+  callrun
+done
+
+#----------Calulates  the averages ----------- 
+for file in `ls runlog/*.txt`
+do
+  echo -n $file >> average.txt
+  cat $file | grep -v "^Command" | awk '{sum += $1} END {print " "sum/NR}' >> average.txt
+done
+echo "===========" >> average.txt
+echo "" >> average.txt
+
+echo "done"