Update flags

This commit is contained in:
Andrei Betlen 2023-09-12 18:37:32 -04:00
parent 4cb0e35b64
commit e65a823dc8

View file

@ -8,10 +8,10 @@ option(LLAMA_BUILD "Build llama.cpp shared library and install alongside python
if (LLAMA_BUILD)
set(BUILD_SHARED_LIBS "On")
if (APPLE)
set(LLAMA_AVX "Off")
set(LLAMA_AVX2 "Off")
set(LLAMA_FMA "Off")
set(LLAMA_F16C "Off")
set(LLAMA_AVX "Off" CACHE BOOL "llama: enable AVX" FORCE)
set(LLAMA_AVX2 "Off" CACHE BOOL "llama: enable AVX2" FORCE)
set(LLAMA_FMA "Off" CACHE BOOL "llama: enable FMA" FORCE)
set(LLAMA_F16C "Off" CACHE BOOL "llama: enable F16C" FORCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native")
endif()