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:
parent
3105e0043d
commit
f4ca596105
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue