Skip to content

Commit eec22a1

Browse files
author
a-n-n-a-l-e-e
authored
cmake : check for openblas64 (#4134)
openblas v0.3.22 64-bit pkg-config file is named openblas64.pc OpenMathLib/OpenBLAS#3790
1 parent be36bb9 commit eec22a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ if (LLAMA_BLAS)
230230
if (${LLAMA_BLAS_VENDOR} MATCHES "Generic")
231231
pkg_check_modules(DepBLAS REQUIRED blas)
232232
elseif (${LLAMA_BLAS_VENDOR} MATCHES "OpenBLAS")
233-
pkg_check_modules(DepBLAS REQUIRED openblas)
233+
# As of openblas v0.3.22, the 64-bit is named openblas64.pc
234+
pkg_check_modules(DepBLAS openblas64)
235+
if (NOT DepBLAS_FOUND)
236+
pkg_check_modules(DepBLAS REQUIRED openblas)
237+
endif()
234238
elseif (${LLAMA_BLAS_VENDOR} MATCHES "FLAME")
235239
pkg_check_modules(DepBLAS REQUIRED blis)
236240
elseif (${LLAMA_BLAS_VENDOR} MATCHES "ATLAS")

0 commit comments

Comments
 (0)