fix: set LLAMA_METAL_EMBED_LIBRARY=on on MacOS arm64 (#1289)
This commit is contained in:
parent
f7decc9562
commit
740f3f3812
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue