dgemm-test-without-lapacke
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 20 Aug 2019 15:52:34 +0000 (16:52 +0100)
committerSébastien Villemot <sebastien@debian.org>
Tue, 20 Aug 2019 15:52:34 +0000 (16:52 +0100)
Gbp-Pq: Name dgemm-test-without-lapacke.patch

utest/CMakeLists.txt
utest/Makefile

index 4e647cadc1c7c4064d7d65db5c4de1e9e4818783..1e3051a8fd4fd1a38e794b0a49346178dc6f04a3 100644 (file)
@@ -38,9 +38,14 @@ if (NOT NO_LAPACK)
 set(OpenBLAS_utest_src
   ${OpenBLAS_utest_src}
   test_potrs.c
+  )
+if (NOT NO_CBLAS AND NOT NO_LAPACKE)
+set(OpenBLAS_utest_src
+  ${OpenBLAS_utest_src}
   test_kernel_regress.c
   )
 endif()
+endif()
 
 set(OpenBLAS_utest_bin openblas_utest)
 add_executable(${OpenBLAS_utest_bin} ${OpenBLAS_utest_src})
index 5846db0bb51774e4036ed5f58598eb6339ddc407..41c13e26b4e96b20512527dd5f74afe9f0a34fa8 100644 (file)
@@ -4,6 +4,9 @@ TOPDIR  = ..
 override TARGET_ARCH=
 override TARGET_MACH=
 
+override TARGET_ARCH=
+override TARGET_MACH=
+
 UTESTBIN=openblas_utest
 
 .PHONY : all
@@ -16,8 +19,12 @@ OBJS=utest_main.o test_amax.o test_rotmg.o test_axpy.o test_dotu.o test_dsdot.o
 
 ifneq ($(NO_LAPACK), 1)
 OBJS += test_potrs.o
+ifneq ($(NO_CBLAS), 1)
+ifneq ($(NO_LAPACKE), 1)
 OBJS += test_kernel_regress.o
 endif
+endif
+endif
 
 #this does not work with OpenMP nor with native Windows or Android threads
 # FIXME TBD if this works on OSX, SunOS, POWER and zarch