8000 Disable acceleration in macos tests only · earonesty/llama-cpp-python@4c0787b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c0787b

Browse files
committed
Disable acceleration in macos tests only
1 parent d24383e commit 4c0787b

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- name: Install dependencies
7474
run: |
7575
python3 -m pip install --upgrade pip
76-
python3 -m pip install .[all] --verbose --config-settings=cmake.verbose=true --config-settings=logging.level=INFO
76+
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
7777
- name: Test with pytest
7878
run: |
7979
python3 -m pytest

CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ project(llama_cpp)
44

55
option(BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON)
66

7-
if (APPLE)
8-
set(LLAMA_AVX OFF)
9-
set(LLAMA_AVX2 OFF)
10-
set(LLAMA_AVX512 OFF)
11-
set(LLAMA_AVX512_VBMI OFF)
12-
set(LLAMA_AVX512_VNNI OFF)
13-
set(LLAMA_FMA OFF)
14-
set(LLAMA_F16C OFF)
15-
set(LLAMA_ACCELERATE OFF)
16-
set(LLAMA_METAL OFF)
17-
endif()
187

198
if (BUILD_LLAMA_CPP)
209
set(BUILD_SHARED_LIBS "On")

0 commit comments

Comments
 (0)
0