From 3366e897dcb32732b5dd6a6ad23486c3e740fef5 Mon Sep 17 00:00:00 2001 From: adash Date: Mon, 15 Dec 2008 18:20:37 +0000 Subject: [PATCH] scripts for automatically running javasingle versions of benchmarks --- Robust/src/Benchmarks/Prefetch/bmlatest.txt | 11 +++++ Robust/src/Benchmarks/Prefetch/runlatest.sh | 47 +++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 Robust/src/Benchmarks/Prefetch/bmlatest.txt create mode 100755 Robust/src/Benchmarks/Prefetch/runlatest.sh diff --git a/Robust/src/Benchmarks/Prefetch/bmlatest.txt b/Robust/src/Benchmarks/Prefetch/bmlatest.txt new file mode 100644 index 00000000..081bf63a --- /dev/null +++ b/Robust/src/Benchmarks/Prefetch/bmlatest.txt @@ -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 index 00000000..2b0d4cb7 --- /dev/null +++ b/Robust/src/Benchmarks/Prefetch/runlatest.sh @@ -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" -- 2.34.1