Add tune
This commit is contained in:
parent
f93fb30f5c
commit
010a50168c
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ 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)
|
if (APPLE)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_LLAMA_CPP)
|
if (BUILD_LLAMA_CPP)
|
||||||
|
|
Loading…
Reference in a new issue