From f0bcc000de560b3578eb436781ad2c7890ee37cb Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Wed, 21 Mar 2018 14:09:43 -0600 Subject: [PATCH] Selectable size of test parameters --- scripts/make-single-openmp.sh | 4 ++-- scripts/test-single-openmp.sh | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/scripts/make-single-openmp.sh b/scripts/make-single-openmp.sh index d2dc960..5e9ead1 100755 --- a/scripts/make-single-openmp.sh +++ b/scripts/make-single-openmp.sh @@ -4,5 +4,5 @@ DIR=/tmp rm -rf $DIR/sng $DIR/omp mkdir $DIR/sng $DIR/omp -(cd ..; make clean; (./configure --disable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/sng/.) -(cd ..; make clean; (./configure --enable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/omp/.) +(cd ..; (make clean > /dev/null); (./configure --disable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/sng/.) +(cd ..; (make clean > /dev/null); (./configure --enable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/omp/.) diff --git a/scripts/test-single-openmp.sh b/scripts/test-single-openmp.sh index 18a620b..8697e37 100755 --- a/scripts/test-single-openmp.sh +++ b/scripts/test-single-openmp.sh @@ -1,7 +1,21 @@ -PR=1651 -PV=1441 -IX=1151 -IY=$IX +#/bin/sh + +TEST=medium +if test $# -ge 1; then + TEST=$1 +fi + +if test "x$TEST" = "xshort"; then + PR=165; PV=144; IX=115; IY=$IX +elif test "x$TEST" = "xmedium"; then + PR=901; PV=600; IX=500; IY=$IX +elif test "x$TEST" = "xlong"; then + PR=1651; PV=1440; IX=1151; IY=$IX +else + echo "usage: $0 [test-size]" + echo "test-size -- either short, medium, or long" + exit +fi TIME= DIR=/tmp -- 2.34.1