From: a-n-n-a-l-e-e Date: Fri, 5 Jan 2024 16:04:40 +0000 (-0800) Subject: cmake : check for openblas64 (#4134) X-Git-Tag: upstream/0.0.4488~2712 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=eec22a1c6378d9a013943cbddb4330c0da621442;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake : check for openblas64 (#4134) openblas v0.3.22 64-bit pkg-config file is named openblas64.pc https://github.com/OpenMathLib/OpenBLAS/issues/3790 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ce237cf4..668669c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")