Skip to content

Commit 0889589

Browse files
authored
ci : enable Vulkan workflow on Mac (#16194)
1 parent 4e29084 commit 0889589

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,16 +1424,15 @@ jobs:
14241424
run: |
14251425
GG_BUILD_METAL=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
14261426
1427-
# TODO: install vulkan drivers
1428-
# ggml-ci-mac-vulkan:
1429-
# runs-on: [self-hosted, macOS, ARM64]
1430-
#
1431-
# steps:
1432-
# - name: Clone
1433-
# id: checkout
1434-
# uses: actions/checkout@v4
1435-
#
1436-
# - name: Test
1437-
# id: ggml-ci
1438-
# run: |
1439-
# GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
1427+
ggml-ci-mac-vulkan:
1428+
runs-on: [self-hosted, macOS, ARM64]
1429+
1430+
steps:
1431+
- name: Clone
1432+
id: checkout
1433+
uses: actions/checkout@v4
1434+
1435+
- name: Test
1436+
id: ggml-ci
1437+
run: |
1438+
GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp

ci/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ fi
9292

9393
if [ ! -z ${GG_BUILD_VULKAN} ]; then
9494
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_VULKAN=1"
95+
96+
# if on Mac, disable METAL
97+
if [[ "$OSTYPE" == "darwin"* ]]; then
98+
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_METAL=OFF -DGGML_BLAS=OFF"
99+
fi
100+
95101
fi
96102

97103
if [ ! -z ${GG_BUILD_WEBGPU} ]; then

0 commit comments

Comments
 (0)