]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : enable Vulkan workflow on Mac (#16194)
authorGeorgi Gerganov <redacted>
Tue, 23 Sep 2025 10:44:25 +0000 (13:44 +0300)
committerGitHub <redacted>
Tue, 23 Sep 2025 10:44:25 +0000 (13:44 +0300)
.github/workflows/build.yml
ci/run.sh

index afdcdd07b05cc8b6de40d80ea7c173cfe7eab518..8f8f48607172bb34e3857cf525b3ae25aa244988 100644 (file)
@@ -1424,16 +1424,15 @@ jobs:
         run: |
           GG_BUILD_METAL=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
 
-# TODO: install vulkan drivers
-#  ggml-ci-mac-vulkan:
-#    runs-on: [self-hosted, macOS, ARM64]
-#
-#    steps:
-#      - name: Clone
-#        id: checkout
-#        uses: actions/checkout@v4
-#
-#      - name: Test
-#        id: ggml-ci
-#        run: |
-#          GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
+  ggml-ci-mac-vulkan:
+    runs-on: [self-hosted, macOS, ARM64]
+
+    steps:
+      - name: Clone
+        id: checkout
+        uses: actions/checkout@v4
+
+      - name: Test
+        id: ggml-ci
+        run: |
+          GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
index cb90f7a7850fcf2176098cad89c3079a839d99db..44f59c11e4eca2df9d3745a932767bf6c6f089b8 100755 (executable)
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -92,6 +92,12 @@ fi
 
 if [ ! -z ${GG_BUILD_VULKAN} ]; then
     CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_VULKAN=1"
+
+    # if on Mac, disable METAL
+    if [[ "$OSTYPE" == "darwin"* ]]; then
+        CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_METAL=OFF -DGGML_BLAS=OFF"
+    fi
+
 fi
 
 if [ ! -z ${GG_BUILD_WEBGPU} ]; then