ci : enable Vulkan workflow on Mac (#16194)

This commit is contained in:
Georgi Gerganov
2025-09-23 13:44:25 +03:00
committed by GitHub
parent 4e29084ba4
commit 0889589dbe
2 changed files with 18 additions and 13 deletions

View File

@@ -1424,16 +1424,15 @@ jobs:
run: | run: |
GG_BUILD_METAL=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp GG_BUILD_METAL=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
# TODO: install vulkan drivers ggml-ci-mac-vulkan:
# ggml-ci-mac-vulkan: runs-on: [self-hosted, macOS, ARM64]
# runs-on: [self-hosted, macOS, ARM64]
# steps:
# steps: - name: Clone
# - name: Clone id: checkout
# id: checkout uses: actions/checkout@v4
# uses: actions/checkout@v4
# - name: Test
# - name: Test id: ggml-ci
# id: ggml-ci run: |
# run: | GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
# GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp

View File

@@ -92,6 +92,12 @@ fi
if [ ! -z ${GG_BUILD_VULKAN} ]; then if [ ! -z ${GG_BUILD_VULKAN} ]; then
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_VULKAN=1" 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 fi
if [ ! -z ${GG_BUILD_WEBGPU} ]; then if [ ! -z ${GG_BUILD_WEBGPU} ]; then