Skip to content

Commit e439700

Browse files
authored
ci: Add Windows Vulkan backend testing on Intel (ggml-org#21292)
* experimenting CI * Experimenting CI fix for MinGW * experimenting CI on Windows * modified script for integration with VisualStudio * added proxy handling * adding python version for Windows execution * fix iterator::end() dereference * fixed proxy handling * Fix errors occurring on Windows * fixed ci script * Reverted to master * Stripping test items to simplify Windows test * adjusting script for windows testing * Changed shell * Fixed shell * Fixed shell * Fix CI setting * Fix CI setting * Fix CI setting * Experimenting ci fix * Experimenting ci fix * Experimenting ci fix * Experimenting ci fix * experimenting fix for unit test error * Changed to use BUILD_LOW_PERF to skip python tests * Fix CI * Added option to specify Ninja generator * Reverted proxy related changes
1 parent 50e0ad0 commit e439700

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/build-self-hosted.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,27 @@ jobs:
213213
vulkaninfo --summary
214214
GG_BUILD_VULKAN=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
215215
216+
ggml-ci-win-intel-vulkan:
217+
runs-on: [self-hosted, Windows, X64, Intel]
218+
219+
steps:
220+
- name: Clone
221+
id: checkout
222+
uses: actions/checkout@v6
223+
224+
- name: Test
225+
id: ggml-ci
226+
shell: C:\msys64\usr\bin\bash.exe --noprofile --norc -eo pipefail "{0}"
227+
env:
228+
MSYSTEM: UCRT64
229+
CHERE_INVOKING: 1
230+
PATH: C:\msys64\ucrt64\bin;C:\msys64\usr\bin;C:\Windows\System32;${{ env.PATH }}
231+
run: |
232+
vulkaninfo --summary
233+
# Skip python related tests with GG_BUILD_LOW_PERF=1 since Windows MSYS2 UCRT64 currently fails to create
234+
# a valid python environment for testing
235+
LLAMA_FATAL_WARNINGS=OFF GG_BUILD_NINJA=1 GG_BUILD_VULKAN=1 GG_BUILD_LOW_PERF=1 ./ci/run.sh ./results/llama.cpp ./mnt/llama.cpp
236+
216237
ggml-ci-intel-openvino-gpu-low-perf:
217238
runs-on: [self-hosted, Linux, Intel, OpenVINO]
218239

ci/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ if [ ! -z ${GG_BUILD_VULKAN} ]; then
119119
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_METAL=OFF -DGGML_BLAS=OFF"
120120
fi
121121

122+
# Build shared libs on Windows
123+
# to reduce binary size and avoid errors in library loading unit tests
124+
if uname -s | grep -qi nt; then
125+
CMAKE_EXTRA="${CMAKE_EXTRA} -DBUILD_SHARED_LIBS=ON"
126+
fi
122127
fi
123128

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

0 commit comments

Comments
 (0)