]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake : check for openblas64 (#4134)
authora-n-n-a-l-e-e <redacted>
Fri, 5 Jan 2024 16:04:40 +0000 (08:04 -0800)
committerGitHub <redacted>
Fri, 5 Jan 2024 16:04:40 +0000 (18:04 +0200)
openblas v0.3.22 64-bit pkg-config file is named openblas64.pc
https://github.com/OpenMathLib/OpenBLAS/issues/3790

CMakeLists.txt

index ce237cf45768ef523d121ad0051b9b205f4ec1a0..668669c6da7e30d0c0317117af82175a8d7a494b 100644 (file)
@@ -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")