Spaces:
Sleeping
Sleeping
Nikolaj Olsson
commited on
ci : re-enable Windows cublas build (#2676)
Browse files* Enable Windows cublas build
* Re-add v12 cuda
- .github/workflows/build.yml +67 -66
.github/workflows/build.yml
CHANGED
|
@@ -430,72 +430,73 @@ jobs:
|
|
| 430 |
name: whisper-blas-bin-${{ matrix.arch }}
|
| 431 |
path: build/bin/${{ matrix.build }}
|
| 432 |
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
|
|
|
| 499 |
|
| 500 |
emscripten:
|
| 501 |
runs-on: ubuntu-latest
|
|
|
|
| 430 |
name: whisper-blas-bin-${{ matrix.arch }}
|
| 431 |
path: build/bin/${{ matrix.build }}
|
| 432 |
|
| 433 |
+
windows-cublas:
|
| 434 |
+
runs-on: windows-2019
|
| 435 |
+
strategy:
|
| 436 |
+
matrix:
|
| 437 |
+
build: [Release]
|
| 438 |
+
arch: [x64]
|
| 439 |
+
cublas: [ON]
|
| 440 |
+
sdl2: [ON]
|
| 441 |
+
cuda-toolkit: [12.2.0, 11.8.0]
|
| 442 |
+
include:
|
| 443 |
+
- arch: x64
|
| 444 |
+
sdl2: ON
|
| 445 |
+
sdl2_ver: 2.28.5
|
| 446 |
+
steps:
|
| 447 |
+
- name: Clone repository
|
| 448 |
+
uses: actions/checkout@v4
|
| 449 |
+
|
| 450 |
+
- name: Add msbuild to PATH
|
| 451 |
+
uses: microsoft/setup-msbuild@v2
|
| 452 |
+
|
| 453 |
+
- name: Install CUDA Toolkit
|
| 454 |
+
id: cuda-toolkit
|
| 455 |
+
uses: Jimver/cuda-toolkit@v0.2.15
|
| 456 |
+
with:
|
| 457 |
+
cuda: '${{ matrix.cuda-toolkit }}'
|
| 458 |
+
|
| 459 |
+
- name: Install 7-Zip
|
| 460 |
+
run: choco install 7zip -y
|
| 461 |
+
|
| 462 |
+
- name: Fetch SDL2 and set SDL2_DIR
|
| 463 |
+
if: matrix.sdl2 == 'ON'
|
| 464 |
+
run: |
|
| 465 |
+
Invoke-WebRequest -Uri https://github.com/libsdl-org/SDL/releases/download/release-${{ matrix.sdl2_ver }}/SDL2-devel-${{ matrix.sdl2_ver }}-VC.zip -OutFile sdl2.zip
|
| 466 |
+
7z x sdl2.zip
|
| 467 |
+
echo "SDL2_DIR=${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" | Out-File -FilePath $env:GITHUB_ENV -Append
|
| 468 |
+
echo "${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" > SDL2_PATH.txt
|
| 469 |
+
|
| 470 |
+
- name: Configure CMake
|
| 471 |
+
shell: cmd
|
| 472 |
+
run: |
|
| 473 |
+
cmake -S . -B ./build -A ${{ matrix.arch }} ^
|
| 474 |
+
-DCMAKE_BUILD_TYPE=${{ matrix.build }} ^
|
| 475 |
+
-DGGML_CUDA=${{ matrix.cublas }} ^
|
| 476 |
+
-DCMAKE_CUDA_ARCHITECTURES=all ^
|
| 477 |
+
-DWHISPER_SDL2=${{ matrix.sdl2 }} ^
|
| 478 |
+
-DSDL2_DIR="%SDL2_DIR%"
|
| 479 |
+
|
| 480 |
+
- name: Build Project
|
| 481 |
+
shell: cmd
|
| 482 |
+
run: |
|
| 483 |
+
cd ./build
|
| 484 |
+
cmake --build . --config ${{ matrix.build }}
|
| 485 |
+
|
| 486 |
+
- name: Copy CUDA DLLs
|
| 487 |
+
run: |
|
| 488 |
+
Get-ChildItem "${{ steps.cuda-toolkit.outputs.CUDA_PATH }}/bin/" -Filter "*.dll" |
|
| 489 |
+
Copy-Item -Destination "build/bin/${{ matrix.build }}"
|
| 490 |
+
|
| 491 |
+
- name: Copy SDL2.dll
|
| 492 |
+
if: matrix.sdl2 == 'ON'
|
| 493 |
+
run: copy "$env:SDL2_DIR/../lib/${{ matrix.arch }}/SDL2.dll" build/bin/${{ matrix.build }}
|
| 494 |
+
|
| 495 |
+
- name: Upload binaries
|
| 496 |
+
uses: actions/upload-artifact@v4
|
| 497 |
+
with:
|
| 498 |
+
name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
|
| 499 |
+
path: build/bin/${{ matrix.build }}
|
| 500 |
|
| 501 |
emscripten:
|
| 502 |
runs-on: ubuntu-latest
|