Skip to content

Commit 9bd17b4

Browse files
committed
fix(workflow): update Windows CUDA build configuration to use Ninja generator and adjust build command
1 parent f55ab9a commit 9bd17b4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
- os: windows-latest
9797
arch: x86_64
9898
name: windows-cuda
99-
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_CPU=OFF -DGGML_CUDA=ON"
99+
make: LLAMA="-G \"Ninja Multi-Config\" -DGGML_NATIVE=OFF -DGGML_CPU=OFF -DGGML_CUDA=ON"
100100
- os: windows-latest
101101
arch: x86_64
102102
name: windows-vulkan
@@ -222,9 +222,10 @@ jobs:
222222
shell: pwsh
223223

224224
- name: windows build ggml-cuda
225-
if: matrix.name == 'windows-cuda'
226-
run: make build/llama.cpp.stamp LLAMA="-G Ninja Multi-Config -DGGML_NATIVE=OFF -DGGML_CPU=OFF -DGGML_CUDA=ON" LLAMA_ARGS="--target ggml-cuda"
227-
shell: pwsh
225+
shell: cmd
226+
run: |
227+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
228+
make build/llama.cpp.stamp ${{ matrix.make && matrix.make || ''}} LLAMA_ARGS="--target ggml-cuda"
228229
229230
- name: windows install hip toolkit
230231
if: matrix.name == 'windows-hip'

0 commit comments

Comments
 (0)