summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--BLAS/CMakeLists.txt2
-rw-r--r--BLAS/TESTING/CMakeLists.txt30
-rw-r--r--BLAS/TESTING/Makeblat167
-rw-r--r--BLAS/TESTING/Makeblat267
-rw-r--r--BLAS/TESTING/Makeblat367
-rw-r--r--BLAS/TESTING/Makefile54
-rw-r--r--BLAS/TESTING/cblat2.in (renamed from BLAS/cblat2.in)0
-rw-r--r--BLAS/TESTING/cblat3.in (renamed from BLAS/cblat3.in)0
-rw-r--r--BLAS/TESTING/dblat2.in (renamed from BLAS/dblat2.in)0
-rw-r--r--BLAS/TESTING/dblat3.in (renamed from BLAS/dblat3.in)0
-rw-r--r--BLAS/TESTING/sblat2.in (renamed from BLAS/sblat2.in)0
-rw-r--r--BLAS/TESTING/sblat3.in (renamed from BLAS/sblat3.in)0
-rw-r--r--BLAS/TESTING/zblat2.in (renamed from BLAS/zblat2.in)0
-rw-r--r--BLAS/TESTING/zblat3.in (renamed from BLAS/zblat3.in)0
-rw-r--r--Makefile25
16 files changed, 62 insertions, 254 deletions
diff --git a/.gitignore b/.gitignore
index 1649a488..051cb7d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,8 +8,8 @@ INSTALL/test*
make.inc
# BLAS testing
-BLAS/*.out
-BLAS/x*
+BLAS/TESTING/*.out
+BLAS/TESTING/x*
# LAPACK testing
TESTING/x*
diff --git a/BLAS/CMakeLists.txt b/BLAS/CMakeLists.txt
index 42cd4f61..e122b2b3 100644
--- a/BLAS/CMakeLists.txt
+++ b/BLAS/CMakeLists.txt
@@ -1,6 +1,6 @@
add_subdirectory(SRC)
if(BUILD_TESTING)
-add_subdirectory(TESTING)
+ add_subdirectory(TESTING)
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY)
install(FILES
diff --git a/BLAS/TESTING/CMakeLists.txt b/BLAS/TESTING/CMakeLists.txt
index f88c9a8a..9b130db0 100644
--- a/BLAS/TESTING/CMakeLists.txt
+++ b/BLAS/TESTING/CMakeLists.txt
@@ -1,34 +1,6 @@
-#######################################################################
-# This makefile creates the test programs for the BLAS 1 routines.
-# The test files are grouped as follows:
-# SBLAT1 -- Single precision real test routines
-# CBLAT1 -- Single precision complex test routines
-# DBLAT1 -- Double precision real test routines
-# ZBLAT1 -- Double precision complex test routines
-#
-# Test programs can be generated for all or some of the four different
-# precisions. To create the test programs, enter make followed by one
-# or more of the precisions desired. Some examples:
-# make single
-# make single complex
-# make single double complex complex16
-# Alternatively, the command
-# make
-# without any arguments creates all four test programs.
-# The executable files which are created are called
-# ../xblat1s, ../xblat1d, ../xblat1c, and ../xblat1z
-#
-# To remove the object files after the executable files have been
-# created, enter
-# make clean
-# To force the source files to be recompiled, enter, for example,
-# make single FRC=FRC
-#
-#######################################################################
-
macro(add_blas_test name src)
get_filename_component(baseNAME ${src} NAME_WE)
- set(TEST_INPUT "${LAPACK_SOURCE_DIR}/BLAS/${baseNAME}.in")
+ set(TEST_INPUT "${CMAKE_CURRENT_SOURCE_DIR}/${baseNAME}.in")
add_executable(${name} ${src})
target_link_libraries(${name} blas)
if(EXISTS "${TEST_INPUT}")
diff --git a/BLAS/TESTING/Makeblat1 b/BLAS/TESTING/Makeblat1
deleted file mode 100644
index ccd7e3c6..00000000
--- a/BLAS/TESTING/Makeblat1
+++ /dev/null
@@ -1,67 +0,0 @@
-include ../../make.inc
-
-#######################################################################
-# This makefile creates the test programs for the BLAS 1 routines.
-# The test files are grouped as follows:
-# SBLAT1 -- Single precision real test routines
-# CBLAT1 -- Single precision complex test routines
-# DBLAT1 -- Double precision real test routines
-# ZBLAT1 -- Double precision complex test routines
-#
-# Test programs can be generated for all or some of the four different
-# precisions. To create the test programs, enter make followed by one
-# or more of the precisions desired. Some examples:
-# make single
-# make single complex
-# make single double complex complex16
-# Alternatively, the command
-# make
-# without any arguments creates all four test programs.
-# The executable files which are created are called
-# ../xblat1s, ../xblat1d, ../xblat1c, and ../xblat1z
-#
-# To remove the object files after the executable files have been
-# created, enter
-# make clean
-# To force the source files to be recompiled, enter, for example,
-# make single FRC=FRC
-#
-#######################################################################
-
-SBLAT1 = sblat1.o
-CBLAT1 = cblat1.o
-DBLAT1 = dblat1.o
-ZBLAT1 = zblat1.o
-
-all: single double complex complex16
-
-single: ../xblat1s
-double: ../xblat1d
-complex: ../xblat1c
-complex16: ../xblat1z
-
-../xblat1s: $(SBLAT1)
- $(LOADER) $(LOADOPTS) -o $@ $(SBLAT1) $(BLASLIB)
-
-../xblat1c: $(CBLAT1)
- $(LOADER) $(LOADOPTS) -o $@ $(CBLAT1) $(BLASLIB)
-
-../xblat1d: $(DBLAT1)
- $(LOADER) $(LOADOPTS) -o $@ $(DBLAT1) $(BLASLIB)
-
-../xblat1z: $(ZBLAT1)
- $(LOADER) $(LOADOPTS) -o $@ $(ZBLAT1) $(BLASLIB)
-
-$(SBLAT1): $(FRC)
-$(CBLAT1): $(FRC)
-$(DBLAT1): $(FRC)
-$(ZBLAT1): $(FRC)
-
-FRC:
- @FRC=$(FRC)
-
-clean:
- rm -f *.o
-
-.f.o:
- $(FORTRAN) $(OPTS) -c -o $@ $<
diff --git a/BLAS/TESTING/Makeblat2 b/BLAS/TESTING/Makeblat2
deleted file mode 100644
index 92060788..00000000
--- a/BLAS/TESTING/Makeblat2
+++ /dev/null
@@ -1,67 +0,0 @@
-include ../../make.inc
-
-#######################################################################
-# This makefile creates the test programs for the BLAS 2 routines.
-# The test files are grouped as follows:
-# SBLAT2 -- Single precision real test routines
-# CBLAT2 -- Single precision complex test routines
-# DBLAT2 -- Double precision real test routines
-# ZBLAT2 -- Double precision complex test routines
-#
-# Test programs can be generated for all or some of the four different
-# precisions. To create the test programs, enter make followed by one
-# or more of the precisions desired. Some examples:
-# make single
-# make single complex
-# make single double complex complex16
-# Alternatively, the command
-# make
-# without any arguments creates all four test programs.
-# The executable files which are created are called
-# ../xblat2s, ../xblat2d, ../xblat2c, and ../xblat2z
-#
-# To remove the object files after the executable files have been
-# created, enter
-# make clean
-# To force the source files to be recompiled, enter, for example,
-# make single FRC=FRC
-#
-#######################################################################
-
-SBLAT2 = sblat2.o
-CBLAT2 = cblat2.o
-DBLAT2 = dblat2.o
-ZBLAT2 = zblat2.o
-
-all: single double complex complex16
-
-single: ../xblat2s
-double: ../xblat2d
-complex: ../xblat2c
-complex16: ../xblat2z
-
-../xblat2s: $(SBLAT2)
- $(LOADER) $(LOADOPTS) -o $@ $(SBLAT2) $(BLASLIB)
-
-../xblat2c: $(CBLAT2)
- $(LOADER) $(LOADOPTS) -o $@ $(CBLAT2) $(BLASLIB)
-
-../xblat2d: $(DBLAT2)
- $(LOADER) $(LOADOPTS) -o $@ $(DBLAT2) $(BLASLIB)
-
-../xblat2z: $(ZBLAT2)
- $(LOADER) $(LOADOPTS) -o $@ $(ZBLAT2) $(BLASLIB)
-
-$(SBLAT2): $(FRC)
-$(CBLAT2): $(FRC)
-$(DBLAT2): $(FRC)
-$(ZBLAT2): $(FRC)
-
-FRC:
- @FRC=$(FRC)
-
-clean:
- rm -f *.o
-
-.f.o:
- $(FORTRAN) $(OPTS) -c -o $@ $<
diff --git a/BLAS/TESTING/Makeblat3 b/BLAS/TESTING/Makeblat3
deleted file mode 100644
index e454b348..00000000
--- a/BLAS/TESTING/Makeblat3
+++ /dev/null
@@ -1,67 +0,0 @@
-include ../../make.inc
-
-#######################################################################
-# This makefile creates the test programs for the BLAS 3 routines.
-# The test files are grouped as follows:
-# SBLAT3 -- Single precision real test routines
-# CBLAT3 -- Single precision complex test routines
-# DBLAT3 -- Double precision real test routines
-# ZBLAT3 -- Double precision complex test routines
-#
-# Test programs can be generated for all or some of the four different
-# precisions. To create the test programs, enter make followed by one
-# or more of the precisions desired. Some examples:
-# make single
-# make single complex
-# make single double complex complex16
-# Alternatively, the command
-# make
-# without any arguments creates all four test programs.
-# The executable files which are created are called
-# ../xblat3s, ../xblat3d, ../xblat3c, and ../xblat3z
-#
-# To remove the object files after the executable files have been
-# created, enter
-# make clean
-# To force the source files to be recompiled, enter, for example,
-# make single FRC=FRC
-#
-#######################################################################
-
-SBLAT3 = sblat3.o
-CBLAT3 = cblat3.o
-DBLAT3 = dblat3.o
-ZBLAT3 = zblat3.o
-
-all: single double complex complex16
-
-single: ../xblat3s
-double: ../xblat3d
-complex: ../xblat3c
-complex16: ../xblat3z
-
-../xblat3s: $(SBLAT3)
- $(LOADER) $(LOADOPTS) -o $@ $(SBLAT3) $(BLASLIB)
-
-../xblat3c: $(CBLAT3)
- $(LOADER) $(LOADOPTS) -o $@ $(CBLAT3) $(BLASLIB)
-
-../xblat3d: $(DBLAT3)
- $(LOADER) $(LOADOPTS) -o $@ $(DBLAT3) $(BLASLIB)
-
-../xblat3z: $(ZBLAT3)
- $(LOADER) $(LOADOPTS) -o $@ $(ZBLAT3) $(BLASLIB)
-
-$(SBLAT3): $(FRC)
-$(CBLAT3): $(FRC)
-$(DBLAT3): $(FRC)
-$(ZBLAT3): $(FRC)
-
-FRC:
- @FRC=$(FRC)
-
-clean:
- rm -f *.o
-
-.f.o:
- $(FORTRAN) $(OPTS) -c -o $@ $<
diff --git a/BLAS/TESTING/Makefile b/BLAS/TESTING/Makefile
new file mode 100644
index 00000000..5cf7db42
--- /dev/null
+++ b/BLAS/TESTING/Makefile
@@ -0,0 +1,54 @@
+include ../../make.inc
+
+all: single double complex complex16
+single: xblat1s xblat2s xblat3s
+double: xblat1d xblat2d xblat3d
+complex: xblat1c xblat2c xblat3c
+complex16: xblat1z xblat2z xblat3z
+
+xblat1s: sblat1.o
+ $(LOADER) $(LOADOPTS) -o $@ sblat1.o $(BLASLIB)
+xblat1d: dblat1.o
+ $(LOADER) $(LOADOPTS) -o $@ dblat1.o $(BLASLIB)
+xblat1c: cblat1.o
+ $(LOADER) $(LOADOPTS) -o $@ cblat1.o $(BLASLIB)
+xblat1z: zblat1.o
+ $(LOADER) $(LOADOPTS) -o $@ zblat1.o $(BLASLIB)
+
+xblat2s: sblat2.o
+ $(LOADER) $(LOADOPTS) -o $@ sblat2.o $(BLASLIB)
+xblat2d: dblat2.o
+ $(LOADER) $(LOADOPTS) -o $@ dblat2.o $(BLASLIB)
+xblat2c: cblat2.o
+ $(LOADER) $(LOADOPTS) -o $@ cblat2.o $(BLASLIB)
+xblat2z: zblat2.o
+ $(LOADER) $(LOADOPTS) -o $@ zblat2.o $(BLASLIB)
+
+xblat3s: sblat3.o
+ $(LOADER) $(LOADOPTS) -o $@ sblat3.o $(BLASLIB)
+xblat3d: dblat3.o
+ $(LOADER) $(LOADOPTS) -o $@ dblat3.o $(BLASLIB)
+xblat3c: cblat3.o
+ $(LOADER) $(LOADOPTS) -o $@ cblat3.o $(BLASLIB)
+xblat3z: zblat3.o
+ $(LOADER) $(LOADOPTS) -o $@ zblat3.o $(BLASLIB)
+
+run: all
+ ./xblat1s > sblat1.out
+ ./xblat1d > dblat1.out
+ ./xblat1c > cblat1.out
+ ./xblat1z > zblat1.out
+ ./xblat2s < sblat2.in
+ ./xblat2d < dblat2.in
+ ./xblat2c < cblat2.in
+ ./xblat2z < zblat2.in
+ ./xblat3s < sblat3.in
+ ./xblat3d < dblat3.in
+ ./xblat3c < cblat3.in
+ ./xblat3z < zblat3.in
+
+clean:
+ rm -f *.o xblat* *.out
+
+.f.o:
+ $(FORTRAN) $(OPTS) -c -o $@ $<
diff --git a/BLAS/cblat2.in b/BLAS/TESTING/cblat2.in
index e76d8a04..e76d8a04 100644
--- a/BLAS/cblat2.in
+++ b/BLAS/TESTING/cblat2.in
diff --git a/BLAS/cblat3.in b/BLAS/TESTING/cblat3.in
index f1480557..f1480557 100644
--- a/BLAS/cblat3.in
+++ b/BLAS/TESTING/cblat3.in
diff --git a/BLAS/dblat2.in b/BLAS/TESTING/dblat2.in
index d436350a..d436350a 100644
--- a/BLAS/dblat2.in
+++ b/BLAS/TESTING/dblat2.in
diff --git a/BLAS/dblat3.in b/BLAS/TESTING/dblat3.in
index 0098f3e5..0098f3e5 100644
--- a/BLAS/dblat3.in
+++ b/BLAS/TESTING/dblat3.in
diff --git a/BLAS/sblat2.in b/BLAS/TESTING/sblat2.in
index fefc7e95..fefc7e95 100644
--- a/BLAS/sblat2.in
+++ b/BLAS/TESTING/sblat2.in
diff --git a/BLAS/sblat3.in b/BLAS/TESTING/sblat3.in
index 5c4e3b83..5c4e3b83 100644
--- a/BLAS/sblat3.in
+++ b/BLAS/TESTING/sblat3.in
diff --git a/BLAS/zblat2.in b/BLAS/TESTING/zblat2.in
index 276911c5..276911c5 100644
--- a/BLAS/zblat2.in
+++ b/BLAS/TESTING/zblat2.in
diff --git a/BLAS/zblat3.in b/BLAS/TESTING/zblat3.in
index a3618b0f..a3618b0f 100644
--- a/BLAS/zblat3.in
+++ b/BLAS/TESTING/zblat3.in
diff --git a/Makefile b/Makefile
index f68fd360..a66610b4 100644
--- a/Makefile
+++ b/Makefile
@@ -58,22 +58,8 @@ variants_testing: lib variants
( cd TESTING; rm -f xlintst*; $(MAKE) VARLIB='SRC/VARIANTS/LIB/qrll.a'; \
mv stest.out stest_qrll.out; mv dtest.out dtest_qrll.out; mv ctest.out ctest_qrll.out; mv ztest.out ztest_qrll.out )
-blas_testing:
- ( cd BLAS/TESTING; $(MAKE) -f Makeblat1 )
- ( cd BLAS; ./xblat1s > sblat1.out ; \
- ./xblat1d > dblat1.out ; \
- ./xblat1c > cblat1.out ; \
- ./xblat1z > zblat1.out )
- ( cd BLAS/TESTING; $(MAKE) -f Makeblat2 )
- ( cd BLAS; ./xblat2s < sblat2.in ; \
- ./xblat2d < dblat2.in ; \
- ./xblat2c < cblat2.in ; \
- ./xblat2z < zblat2.in )
- ( cd BLAS/TESTING; $(MAKE) -f Makeblat3 )
- ( cd BLAS; ./xblat3s < sblat3.in ; \
- ./xblat3d < dblat3.in ; \
- ./xblat3c < cblat3.in ; \
- ./xblat3z < zblat3.in )
+blas_testing: blaslib
+ ( cd BLAS/TESTING; $(MAKE) run )
cblas_testing: blaslib
( cd CBLAS; $(MAKE) cblas_testing )
@@ -110,10 +96,7 @@ cleanlib:
cleanblas_testing:
- ( cd BLAS/TESTING; $(MAKE) -f Makeblat1 clean )
- ( cd BLAS/TESTING; $(MAKE) -f Makeblat2 clean )
- ( cd BLAS/TESTING; $(MAKE) -f Makeblat3 clean )
- ( cd BLAS; rm -f xblat* )
+ ( cd BLAS/TESTING; $(MAKE) clean )
cleancblas_testing:
( cd CBLAS/testing; $(MAKE) clean )
@@ -125,4 +108,4 @@ cleantesting:
cleanall: cleanlib cleanblas_testing cleancblas_testing cleantesting
( cd INSTALL; $(MAKE) cleanall )
- rm -f *.a TESTING/*.out BLAS/*.out
+ rm -f *.a TESTING/*.out