From: Bart Van Assche Date: Fri, 30 May 2008 09:52:13 +0000 (+0000) Subject: Updated scripts for running SPLASH-2. X-Git-Tag: svn/VALGRIND_3_4_0~535 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73dea70691cf4051e59f027036190d4949a8885c;p=thirdparty%2Fvalgrind.git Updated scripts for running SPLASH-2. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8157 --- diff --git a/exp-drd/scripts/download-and-build-splash2 b/exp-drd/scripts/download-and-build-splash2 index 16848f82b1..4de0095abf 100755 --- a/exp-drd/scripts/download-and-build-splash2 +++ b/exp-drd/scripts/download-and-build-splash2 @@ -4,6 +4,7 @@ downloads="$HOME/software/downloads" if [ ! -e /usr/include/tiffio.h ]; then echo "Error: could not find file tiffio.h. Please install libtiff4-dev." + exit 1 fi export LC_ALL=C diff --git a/exp-drd/scripts/run-splash2 b/exp-drd/scripts/run-splash2 index cdfc3993b7..2992c3ca32 100755 --- a/exp-drd/scripts/run-splash2 +++ b/exp-drd/scripts/run-splash2 @@ -7,7 +7,7 @@ # Read a stream of numbers from stdin (one per line), and print the average # and standard deviation. function avgstddev { - awk '{n++;sum+=$1;sumsq+=$1*$1}END{print sum/n,sqrt(sumsq/n-sum*sum/n/n)}' + awk '{n++;sum+=$1;sumsq+=$1*$1}END{d=sumsq/n-sum*sum/n/n;print sum/n,(d>0?sqrt(d):0)}' } function run_test { @@ -54,17 +54,22 @@ if [ ! -e "$VG" ]; then exit 1 fi -# run_test splash2/codes/apps/barnes/BARNES +# Results (-p1): exp-drd (-p1) (-p2) (-p4) ITC (-p4) +# lu, contiguous blocks: 39 43 46 420 +# lu, non-contiguous blocks: 34 41 48 420 +# radiosity: 99 490 -# lu, contiguous blocks: slowdown about 41 (-p1 -n1024). ITC: 230. +# lu, contiguous blocks. run_test splash2/codes/kernels/lu/contiguous_blocks/LU -p1 -n1024 run_test splash2/codes/kernels/lu/contiguous_blocks/LU -p2 -n1024 +run_test splash2/codes/kernels/lu/contiguous_blocks/LU -p4 -n1024 -# lu, non-contiguous blocks: slowdown about 37 (-p1 -n1024). ITC: 230. +# lu, non-contiguous blocks. run_test splash2/codes/kernels/lu/non_contiguous_blocks/LU -p1 -n1024 run_test splash2/codes/kernels/lu/non_contiguous_blocks/LU -p2 -n1024 +run_test splash2/codes/kernels/lu/non_contiguous_blocks/LU -p4 -n1024 -# radiosity: slowdown about 999 because of the large number of mutex operations. -# ITC: 420. +# radiosity. run_test splash2/codes/apps/radiosity/RADIOSITY -p1 -batch -room run_test splash2/codes/apps/radiosity/RADIOSITY -p2 -batch -room +run_test splash2/codes/apps/radiosity/RADIOSITY -p4 -batch -room