Skip to content

Commit a1fce67

Browse files
authored
Make the new DGEMM regression test properly depend on CBLAS and LAPACKE
fixes #2215
1 parent abea977 commit a1fce67

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

utest/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ if (NOT NO_LAPACK)
3838
set(OpenBLAS_utest_src
3939
${OpenBLAS_utest_src}
4040
test_potrs.c
41+
)
42+
if (NOT NO_CBLAS AND NOT NO_LAPACKE)
43+
set(OpenBLAS_utest_src
44+
${OpenBLAS_utest_src}
4145
test_kernel_regress.c
4246
)
4347
endif()
48+
endif()
4449

4550
set(OpenBLAS_utest_bin openblas_utest)
4651
add_executable(${OpenBLAS_utest_bin} ${OpenBLAS_utest_src})

utest/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
UTEST_CHECK = 1
22
TOPDIR = ..
33

4+
override TARGET_ARCH=
5+
override TARGET_MACH=
6+
47
UTESTBIN=openblas_utest
58

69
.PHONY : all
@@ -13,8 +16,12 @@ OBJS=utest_main.o test_amax.o test_rotmg.o test_axpy.o test_dotu.o test_dsdot.o
1316

1417
ifneq ($(NO_LAPACK), 1)
1518
OBJS += test_potrs.o
19+
ifneq ($(NO_CBLAS), 1)
20+
ifneq ($(NO_LAPACKE), 1)
1621
OBJS += test_kernel_regress.o
1722
endif
23+
endif
24+
endif
1825

1926
#this does not work with OpenMP nor with native Windows or Android threads
2027
# FIXME TBD if this works on OSX, SunOS, POWER and zarch

0 commit comments

Comments
 (0)