From f4ca5961055fdade955c8e95732caae190f5a633 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Mon, 3 Jun 2024 07:44:27 +0300 Subject: [PATCH] spec: Enable OpenBLAS support Some hacking[1] because we have LP64 build of openblas. Link: https://github.com/ggerganov/llama.cpp/issues/7708 Signed-off-by: Vitaly Chikunov --- .gear/llama.cpp.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gear/llama.cpp.spec b/.gear/llama.cpp.spec index 5b432a343..fe52f5fa5 100644 --- a/.gear/llama.cpp.spec +++ b/.gear/llama.cpp.spec @@ -27,6 +27,7 @@ BuildRequires: cmake BuildRequires: ctest BuildRequires: gcc-c++ BuildRequires: libcurl-devel +BuildRequires: libopenblas-devel %description Plain C/C++ implementation (of inference of LLaMA model) without @@ -65,9 +66,12 @@ Overall this is all raw and EXPERIMENTAL, no warranty, no support. %prep %setup +sed -i '/BLA_SIZEOF_INTEGER/s/8/ANY/' CMakeLists.txt %build %cmake \ + -DLLAMA_BLAS=ON \ + -DLLAMA_BLAS_VENDOR=OpenBLAS \ -DLLAMA_CURL=ON \ %nil grep ^LLAMA %_cmake__builddir/CMakeCache.txt | sort | tee build-options.txt