This repository was archived by the owner on Jul 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ jobs:
285285 run : |
286286 ./install_deps.sh
287287 mkdir build && cd build
288- cmake -DLLAMA_METAL_EMBED_LIBRARY=ON -DWHISPER_COREML=1 -DNITRO_VERSION=${{ needs.set-nitro-version.outputs.version }} ..
288+ cmake -DNITRO_VERSION=${{ needs.set-nitro-version.outputs.version }} ..
289289 CC=gcc-8 make -j $(sysctl -n hw.ncpu)
290290 ls -la
291291
@@ -352,7 +352,7 @@ jobs:
352352 run : |
353353 ./install_deps.sh
354354 mkdir build && cd build
355- cmake -DNITRO_VERSION=${{ needs.set-nitro-version.outputs.version }} -DLLAMA_METAL=OFF ..
355+ cmake -DNITRO_VERSION=${{ needs.set-nitro-version.outputs.version }} ..
356356 CC=gcc-8 make -j $(sysctl -n hw.ncp)
357357 ls -la
358358
Original file line number Diff line number Diff line change @@ -42,6 +42,17 @@ if(NOT DEFINED NITRO_VERSION)
4242 set (NITRO_VERSION "default_version" )
4343endif ()
4444
45+ if (APPLE )
46+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm.*|ARM64)$" )
47+ # MacOS silicon
48+ set (LLAMA_METAL_EMBED_LIBRARY ON )
49+ set (WHISPER_COREML 1)
50+ else ()
51+ # MacOS amd64
52+ set (LLAMA_METAL OFF )
53+ endif ()
54+ endif ()
55+
4556add_compile_definitions (NITRO_VERSION="${NITRO_VERSION} " )
4657
4758add_subdirectory (llama.cpp/examples/llava)
You can’t perform that action at this time.
0 commit comments