8000 Update flags · earonesty/llama-cpp-python@e65a823 · GitHub
[go: up one dir, main page]

Skip to content

Commit e65a823

Browse files
committed
Update flags
1 parent 4cb0e35 commit e65a823

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ option(LLAMA_BUILD "Build llama.cpp shared library and install alongside python
88
if (LLAMA_BUILD)
99
set(BUILD_SHARED_LIBS "On")
1010
if (APPLE)
11-
set(LLAMA_AVX "Off")
12-
set(LLAMA_AVX2 "Off")
13-
set(LLAMA_FMA "Off")
14-
set(LLAMA_F16C "Off")
11+
set(LLAMA_AVX "Off" CACHE BOOL "llama: enable AVX" FORCE)
12+
set(LLAMA_AVX2 "Off" CACHE BOOL "llama: enable AVX2" FORCE)
13+
set(LLAMA_FMA "Off" CACHE BOOL "llama: enable FMA" FORCE)
14+
set(LLAMA_F16C "Off" CACHE BOOL "llama: enable F16C" FORCE)
1515
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native")
1616
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native")
1717
endif()

0 commit comments

Comments
 (0)
0