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 <vt@altlinux.org>
This commit is contained in:
Vitaly Chikunov 2024-06-03 07:44:27 +03:00
parent 3105e0043d
commit f4ca596105

View file

@ -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