Disable acceleration in macos tests only

This commit is contained in:
Andrei Betlen 2023-09-12 18:05:44 -04:00
parent d24383eaef
commit 4c0787b408
2 changed files with 1 additions and 12 deletions

View file

@ -73,7 +73,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
python3 -m pip install .[all] --verbose --config-settings=cmake.verbose=true --config-settings=logging.level=INFO CMAKE_ARGS="-DLLAMA_AVX=OFF -DLLAMA_AVX2=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX512_VBMI=OFF -DLLAMA_AVX512_VNNI=OFF -DLLAMA_FMA=OFF -DLLAMA_F16C=OFF -DLLAMA_ACCELERATE=OFF -DLLAMA_METAL=OFF" python3 -m pip install .[all] --verbose --config-settings=cmake.verbose=true --config-settings=logging.level=INFO
- name: Test with pytest - name: Test with pytest
run: | run: |
python3 -m pytest python3 -m pytest

View file

@ -4,17 +4,6 @@ project(llama_cpp)
option(BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON) option(BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON)
if (APPLE)
set(LLAMA_AVX OFF)
set(LLAMA_AVX2 OFF)
set(LLAMA_AVX512 OFF)
set(LLAMA_AVX512_VBMI OFF)
set(LLAMA_AVX512_VNNI OFF)
set(LLAMA_FMA OFF)
set(LLAMA_F16C OFF)
set(LLAMA_ACCELERATE OFF)
set(LLAMA_METAL OFF)
endif()
if (BUILD_LLAMA_CPP) if (BUILD_LLAMA_CPP)
set(BUILD_SHARED_LIBS "On") set(BUILD_SHARED_LIBS "On")