Selectable size of test parameters
authorKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 21 Mar 2018 20:09:43 +0000 (14:09 -0600)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 21 Mar 2018 20:09:43 +0000 (14:09 -0600)
scripts/make-single-openmp.sh
scripts/test-single-openmp.sh

index d2dc960..5e9ead1 100755 (executable)
@@ -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/.)
index 18a620b..8697e37 100755 (executable)
@@ -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