File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ project(llama_cpp)
44
55option (BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON )
66
7- if (APPLE )
8- set (LLAMA_AVX ON CACHE BOOL )
9- set (LLAMA_AVX2 OFF CACHE BOOL )
10- set (LLAMA_FMA OFF CACHE BOOL )
11- set (LLAMA_F16C OFF CACHE BOOL )
12- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native" )
13- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native" )
14- endif ()
157
168if (BUILD_LLAMA_CPP)
179 set (BUILD_SHARED_LIBS "On" )
1810 add_subdirectory (vendor/llama.cpp)
11+ if (APPLE )
12+ set (LLAMA_AVX OFF )
13+ set (LLAMA_AVX2 OFF )
14+ set (LLAMA_FMA OFF )
15+ set (LLAMA_F16C OFF )
16+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native" )
17+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native" )
18+ endif ()
1919 install (
2020 TARGETS llama
2121 LIBRARY DESTINATION ${SKBUILD_PLATLIB_DIR} /llama_cpp
You can’t perform that action at this time.
0 commit comments