Improve testing script for openmp and single-threaded compilations
[ctsim.git] / scripts / make-single-openmp.sh
diff --git a/scripts/make-single-openmp.sh b/scripts/make-single-openmp.sh
new file mode 100755 (executable)
index 0000000..e8607cb
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+DIR=`pwd`
+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/.)