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 d2dc9609c0b3f19d7036ce92aa93ff28357d9c7e..5e9ead1f2756f88ed7de0ce72c8b8ddb3b1d38c3 100755 (executable)
@@ -4,5 +4,5 @@ DIR=/tmp
 rm -rf $DIR/sng $DIR/omp
 mkdir $DIR/sng $DIR/omp
 
 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 18a620bf795d6aabc25df9165c6422da238e9ac5..8697e3710c1701f41841093afd7b5fa56ea51b3a 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
 TIME=
 
 DIR=/tmp