8000 Disable acceleration on macos · earonesty/llama-cpp-python@d24383e · GitHub
[go: up one dir, main page]

Skip to content

Commit d24383e

Browse files
committed
Disable acceleration on macos
1 parent cf9e613 commit d24383e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ 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()
18+
719
if (BUILD_LLAMA_CPP)
820
set(BUILD_SHARED_LIBS "On")
921
add_subdirectory(vendor/llama.cpp)

0 commit comments

Comments
 (0)
0