fix: set LLAMA_METAL_EMBED_LIBRARY=on on MacOS arm64 (#1289)

This commit is contained in:
bretello 2024-03-20 17:46:09 +01:00 committed by GitHub
parent f7decc9562
commit 740f3f3812
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,11 @@ if (LLAMA_BUILD)
set(LLAMA_FMA "Off" CACHE BOOL "llama: enable FMA" FORCE) set(LLAMA_FMA "Off" CACHE BOOL "llama: enable FMA" FORCE)
set(LLAMA_F16C "Off" CACHE BOOL "llama: enable F16C" FORCE) set(LLAMA_F16C "Off" CACHE BOOL "llama: enable F16C" FORCE)
endif() endif()
if (APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
set(LLAMA_METAL_EMBED_LIBRARY "On" CACHE BOOL "llama: embed metal library" FORCE)
endif()
add_subdirectory(vendor/llama.cpp) add_subdirectory(vendor/llama.cpp)
install( install(
TARGETS llama TARGETS llama