Skip to content

Commit b48c025

Browse files
authored
Merge pull request #2218 from martin-frbg/issue2215
Make the new DGEMM regression test properly depend on CBLAS and LAPACKE
2 parents 103b32f + a1fce67 commit b48c025

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ OBJS=utest_main.o test_amax.o test_rotmg.o test_axpy.o test_dotu.o test_dsdot.o
1616

1717
ifneq ($(NO_LAPACK), 1)
1818
OBJS += test_potrs.o
19+
ifneq ($(NO_CBLAS), 1)
20+
ifneq ($(NO_LAPACKE), 1)
1921
OBJS += test_kernel_regress.o
2022
endif
23+
endif
24+
endif
2125

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

0 commit comments

Comments
 (0)