Skip to content

Commit

Permalink
cmake : check for openblas64 (ggerganov#4134)
Browse files Browse the repository at this point in the history
openblas v0.3.22 64-bit pkg-config file is named openblas64.pc
OpenMathLib/OpenBLAS#3790
  • Loading branch information
a-n-n-a-l-e-e authored Jan 5, 2024
1 parent be36bb9 commit eec22a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ if (LLAMA_BLAS)
if (${LLAMA_BLAS_VENDOR} MATCHES "Generic")
pkg_check_modules(DepBLAS REQUIRED blas)
elseif (${LLAMA_BLAS_VENDOR} MATCHES "OpenBLAS")
pkg_check_modules(DepBLAS REQUIRED openblas)
# As of openblas v0.3.22, the 64-bit is named openblas64.pc
pkg_check_modules(DepBLAS openblas64)
if (NOT DepBLAS_FOUND)
pkg_check_modules(DepBLAS REQUIRED openblas)
endif()
elseif (${LLAMA_BLAS_VENDOR} MATCHES "FLAME")
pkg_check_modules(DepBLAS REQUIRED blis)
elseif (${LLAMA_BLAS_VENDOR} MATCHES "ATLAS")
Expand Down

0 comments on commit eec22a1

Please sign in to comment.