Used the environment variable OPENBLAS_NUM_THREADS to set the number of threads in...
authorXianyi Zhang <traits.zhang@gmail.com>
Mon, 24 Jan 2011 18:11:35 +0000 (18:11 +0000)
committerXianyi Zhang <traits.zhang@gmail.com>
Mon, 24 Jan 2011 18:11:35 +0000 (18:11 +0000)
ctest/Makefile
test/Makefile

index 3cd6cc8..c15a681 100644 (file)
@@ -36,22 +36,22 @@ ztestl3o = c_zblas3.o c_z3chke.o auxiliary.o c_xerbla.o constant.o
 all :: all1 all2 all3 
 
 all1: xscblat1 xdcblat1 xccblat1 xzcblat1
-       GOTO_NUM_THREADS=2 ./xscblat1
-       GOTO_NUM_THREADS=2 ./xdcblat1
-       GOTO_NUM_THREADS=2 ./xccblat1
-       GOTO_NUM_THREADS=2 ./xzcblat1
+       OPENBLAS_NUM_THREADS=2 ./xscblat1
+       OPENBLAS_NUM_THREADS=2 ./xdcblat1
+       OPENBLAS_NUM_THREADS=2 ./xccblat1
+       OPENBLAS_NUM_THREADS=2 ./xzcblat1
 
 all2: xscblat2 xdcblat2 xccblat2 xzcblat2
-       GOTO_NUM_THREADS=2 ./xscblat2 < sin2
-       GOTO_NUM_THREADS=2 ./xdcblat2 < din2
-       GOTO_NUM_THREADS=2 ./xccblat2 < cin2
-       GOTO_NUM_THREADS=2 ./xzcblat2 < zin2
+       OPENBLAS_NUM_THREADS=2 ./xscblat2 < sin2
+       OPENBLAS_NUM_THREADS=2 ./xdcblat2 < din2
+       OPENBLAS_NUM_THREADS=2 ./xccblat2 < cin2
+       OPENBLAS_NUM_THREADS=2 ./xzcblat2 < zin2
 
 all3: xscblat3 xdcblat3 xccblat3 xzcblat3
-       GOTO_NUM_THREADS=2 ./xscblat3 < sin3
-       GOTO_NUM_THREADS=2 ./xdcblat3 < din3
-       GOTO_NUM_THREADS=2 ./xccblat3 < cin3
-       GOTO_NUM_THREADS=2 ./xzcblat3 < zin3
+       OPENBLAS_NUM_THREADS=2 ./xscblat3 < sin3
+       OPENBLAS_NUM_THREADS=2 ./xdcblat3 < din3
+       OPENBLAS_NUM_THREADS=2 ./xccblat3 < cin3
+       OPENBLAS_NUM_THREADS=2 ./xzcblat3 < zin3
 
 clean ::
        rm -f x* 
index 4f6ca91..a5308e4 100644 (file)
@@ -4,58 +4,58 @@ include ../Makefile.system
 all :: level1 level2 level3
 
 level1 : sblat1 dblat1 cblat1 zblat1
-       GOTO_NUM_THREADS=1 ./sblat1
-       GOTO_NUM_THREADS=1 ./dblat1
-       GOTO_NUM_THREADS=1 ./cblat1
-       GOTO_NUM_THREADS=1 ./zblat1
+       OPENBLAS_NUM_THREADS=1 ./sblat1
+       OPENBLAS_NUM_THREADS=1 ./dblat1
+       OPENBLAS_NUM_THREADS=1 ./cblat1
+       OPENBLAS_NUM_THREADS=1 ./zblat1
 ifdef SMP
-       GOTO_NUM_THREADS=2 ./sblat1
-       GOTO_NUM_THREADS=2 ./dblat1
-       GOTO_NUM_THREADS=2 ./cblat1
-       GOTO_NUM_THREADS=2 ./zblat1
+       OPENBLAS_NUM_THREADS=2 ./sblat1
+       OPENBLAS_NUM_THREADS=2 ./dblat1
+       OPENBLAS_NUM_THREADS=2 ./cblat1
+       OPENBLAS_NUM_THREADS=2 ./zblat1
 endif
 
 level2 : sblat2 dblat2 cblat2 zblat2
        rm -f ?BLAT2.SUMM
-       GOTO_NUM_THREADS=1 ./sblat2 < ./sblat2.dat
+       OPENBLAS_NUM_THREADS=1 ./sblat2 < ./sblat2.dat
        @$(GREP) -q FATAL SBLAT2.SUMM && cat SBLAT2.SUMM || exit 0
-       GOTO_NUM_THREADS=1 ./dblat2 < ./dblat2.dat
+       OPENBLAS_NUM_THREADS=1 ./dblat2 < ./dblat2.dat
        @$(GREP) -q FATAL DBLAT2.SUMM && cat DBLAT2.SUMM || exit 0
-       GOTO_NUM_THREADS=1 ./cblat2 < ./cblat2.dat
+       OPENBLAS_NUM_THREADS=1 ./cblat2 < ./cblat2.dat
        @$(GREP) -q FATAL CBLAT2.SUMM && cat CBLAT2.SUMM || exit 0
-       GOTO_NUM_THREADS=1 ./zblat2 < ./zblat2.dat
+       OPENBLAS_NUM_THREADS=1 ./zblat2 < ./zblat2.dat
        @$(GREP) -q FATAL ZBLAT2.SUMM && cat ZBLAT2.SUMM || exit 0
 ifdef SMP
        rm -f ?BLAT2.SUMM
-       GOTO_NUM_THREADS=2 ./sblat2 < ./sblat2.dat
+       OPENBLAS_NUM_THREADS=2 ./sblat2 < ./sblat2.dat
        @$(GREP) -q FATAL SBLAT2.SUMM && cat SBLAT2.SUMM || exit 0
-       GOTO_NUM_THREADS=2 ./dblat2 < ./dblat2.dat
+       OPENBLAS_NUM_THREADS=2 ./dblat2 < ./dblat2.dat
        @$(GREP) -q FATAL DBLAT2.SUMM && cat DBLAT2.SUMM || exit 0
-       GOTO_NUM_THREADS=2 ./cblat2 < ./cblat2.dat
+       OPENBLAS_NUM_THREADS=2 ./cblat2 < ./cblat2.dat
        @$(GREP) -q FATAL CBLAT2.SUMM && cat CBLAT2.SUMM || exit 0
-       GOTO_NUM_THREADS=2 ./zblat2 < ./zblat2.dat
+       OPENBLAS_NUM_THREADS=2 ./zblat2 < ./zblat2.dat
        @$(GREP) -q FATAL ZBLAT2.SUMM && cat ZBLAT2.SUMM || exit 0
 endif
 
 level3 : sblat3 dblat3 cblat3 zblat3
        rm -f ?BLAT3.SUMM
-       GOTO_NUM_THREADS=1 ./sblat3 < ./sblat3.dat
+       OPENBLAS_NUM_THREADS=1 ./sblat3 < ./sblat3.dat
        @$(GREP) -q FATAL SBLAT3.SUMM && cat SBLAT3.SUMM || exit 0
-       GOTO_NUM_THREADS=1 ./dblat3 < ./dblat3.dat
+       OPENBLAS_NUM_THREADS=1 ./dblat3 < ./dblat3.dat
        @$(GREP) -q FATAL DBLAT3.SUMM && cat DBLAT3.SUMM || exit 0
-       GOTO_NUM_THREADS=1 ./cblat3 < ./cblat3.dat
+       OPENBLAS_NUM_THREADS=1 ./cblat3 < ./cblat3.dat
        @$(GREP) -q FATAL CBLAT3.SUMM && cat CBLAT3.SUMM || exit 0
-       GOTO_NUM_THREADS=1 ./zblat3 < ./zblat3.dat
+       OPENBLAS_NUM_THREADS=1 ./zblat3 < ./zblat3.dat
        @$(GREP) -q FATAL ZBLAT3.SUMM && cat ZBLAT3.SUMM || exit 0
 ifdef SMP
        rm -f ?BLAT3.SUMM
-       GOTO_NUM_THREADS=2 ./sblat3 < ./sblat3.dat
+       OPENBLAS_NUM_THREADS=2 ./sblat3 < ./sblat3.dat
        @$(GREP) -q FATAL SBLAT3.SUMM && cat SBLAT3.SUMM || exit 0
-       GOTO_NUM_THREADS=2 ./dblat3 < ./dblat3.dat
+       OPENBLAS_NUM_THREADS=2 ./dblat3 < ./dblat3.dat
        @$(GREP) -q FATAL DBLAT3.SUMM && cat DBLAT3.SUMM || exit 0
-       GOTO_NUM_THREADS=2 ./cblat3 < ./cblat3.dat
+       OPENBLAS_NUM_THREADS=2 ./cblat3 < ./cblat3.dat
        @$(GREP) -q FATAL CBLAT3.SUMM && cat CBLAT3.SUMM || exit 0
-       GOTO_NUM_THREADS=2 ./zblat3 < ./zblat3.dat
+       OPENBLAS_NUM_THREADS=2 ./zblat3 < ./zblat3.dat
        @$(GREP) -q FATAL ZBLAT3.SUMM && cat ZBLAT3.SUMM || exit 0
 endif