ci : re-enable Windows cublas build (#2676)
* Enable Windows cublas build * Re-add v12 cuda
This commit is contained in:
parent
c84b83c370
commit
36a64a253f
133
.github/workflows/build.yml
vendored
133
.github/workflows/build.yml
vendored
@ -430,72 +430,73 @@ jobs:
|
|||||||
name: whisper-blas-bin-${{ matrix.arch }}
|
name: whisper-blas-bin-${{ matrix.arch }}
|
||||||
path: build/bin/${{ matrix.build }}
|
path: build/bin/${{ matrix.build }}
|
||||||
|
|
||||||
# TODO: fix and re-enable
|
windows-cublas:
|
||||||
# windows-cublas:
|
runs-on: windows-2019
|
||||||
# runs-on: windows-2019
|
strategy:
|
||||||
#
|
matrix:
|
||||||
# strategy:
|
build: [Release]
|
||||||
# matrix:
|
arch: [x64]
|
||||||
# build: [Release]
|
cublas: [ON]
|
||||||
# arch: [x64]
|
sdl2: [ON]
|
||||||
# cublas: [ON]
|
cuda-toolkit: [12.2.0, 11.8.0]
|
||||||
# sdl2: [ON]
|
include:
|
||||||
# cuda-toolkit: [12.2.0, 11.8.0]
|
- arch: x64
|
||||||
# include:
|
sdl2: ON
|
||||||
# - arch: x64
|
sdl2_ver: 2.28.5
|
||||||
# s2arc: x64
|
steps:
|
||||||
# - sdl2: ON
|
- name: Clone repository
|
||||||
# s2ver: 2.28.5
|
uses: actions/checkout@v4
|
||||||
#
|
|
||||||
# steps:
|
- name: Add msbuild to PATH
|
||||||
# - name: Clone
|
uses: microsoft/setup-msbuild@v2
|
||||||
# uses: actions/checkout@v4
|
|
||||||
#
|
- name: Install CUDA Toolkit
|
||||||
# - name: Add msbuild to PATH
|
id: cuda-toolkit
|
||||||
# uses: microsoft/setup-msbuild@v2
|
uses: Jimver/cuda-toolkit@v0.2.15
|
||||||
#
|
with:
|
||||||
# - name: Install CUDA Toolkit
|
cuda: '${{ matrix.cuda-toolkit }}'
|
||||||
# id: cuda-toolkit
|
|
||||||
# uses: Jimver/cuda-toolkit@v0.2.15
|
- name: Install 7-Zip
|
||||||
# with:
|
run: choco install 7zip -y
|
||||||
# cuda: '${{ matrix.cuda-toolkit }}'
|
|
||||||
#
|
- name: Fetch SDL2 and set SDL2_DIR
|
||||||
# - name: Fetch SDL2 and set SDL2_DIR
|
if: matrix.sdl2 == 'ON'
|
||||||
# if: matrix.sdl2 == 'ON'
|
run: |
|
||||||
# run: |
|
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
|
||||||
# C:/msys64/usr/bin/wget.exe -qO sdl2.zip https://github.com/libsdl-org/SDL/releases/download/release-${{ matrix.s2ver }}/SDL2-devel-${{ matrix.s2ver }}-VC.zip
|
7z x sdl2.zip
|
||||||
# 7z x sdl2.zip
|
echo "SDL2_DIR=${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||||
# echo "SDL2_DIR=$env:GITHUB_WORKSPACE/SDL2-${{ matrix.s2ver }}/cmake" >> $env:GITHUB_ENV
|
echo "${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" > SDL2_PATH.txt
|
||||||
#
|
|
||||||
# - name: Configure
|
- name: Configure CMake
|
||||||
# run: >
|
shell: cmd
|
||||||
# cmake -S . -B ./build -A ${{ matrix.arch }}
|
run: |
|
||||||
# -DCMAKE_BUILD_TYPE=${{ matrix.build }}
|
cmake -S . -B ./build -A ${{ matrix.arch }} ^
|
||||||
# -DGGML_CUDA=${{ matrix.cublas }}
|
-DCMAKE_BUILD_TYPE=${{ matrix.build }} ^
|
||||||
# -DWHISPER_SDL2=${{ matrix.sdl2 }}
|
-DGGML_CUDA=${{ matrix.cublas }} ^
|
||||||
#
|
-DCMAKE_CUDA_ARCHITECTURES=all ^
|
||||||
# - name: Build ${{ matrix.cuda-toolkit }}
|
-DWHISPER_SDL2=${{ matrix.sdl2 }} ^
|
||||||
# run: |
|
-DSDL2_DIR="%SDL2_DIR%"
|
||||||
# cd ./build
|
|
||||||
# cmake --build . --config ${{ matrix.build }}
|
- name: Build Project
|
||||||
#
|
shell: cmd
|
||||||
# - name: Copy CUDA DLLs
|
run: |
|
||||||
# run: >
|
cd ./build
|
||||||
# Copy-Item -PassThru
|
cmake --build . --config ${{ matrix.build }}
|
||||||
# -Path "${{ steps.cuda-toolkit.outputs.CUDA_PATH }}/bin/*.dll"
|
|
||||||
# -Include cudart64_*,cublas64_*,cublasLt64_*
|
- name: Copy CUDA DLLs
|
||||||
# -Destination build/bin/${{ matrix.build }}
|
run: |
|
||||||
#
|
Get-ChildItem "${{ steps.cuda-toolkit.outputs.CUDA_PATH }}/bin/" -Filter "*.dll" |
|
||||||
# - name: Copy SDL2.dll
|
Copy-Item -Destination "build/bin/${{ matrix.build }}"
|
||||||
# if: matrix.sdl2 == 'ON'
|
|
||||||
# run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
|
- name: Copy SDL2.dll
|
||||||
#
|
if: matrix.sdl2 == 'ON'
|
||||||
# - name: Upload binaries
|
run: copy "$env:SDL2_DIR/../lib/${{ matrix.arch }}/SDL2.dll" build/bin/${{ matrix.build }}
|
||||||
# if: matrix.sdl2 == 'ON'
|
|
||||||
# uses: actions/upload-artifact@v4
|
- name: Upload binaries
|
||||||
# with:
|
uses: actions/upload-artifact@v4
|
||||||
# name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
|
with:
|
||||||
# path: build/bin/${{ matrix.build }}
|
name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
|
||||||
|
path: build/bin/${{ matrix.build }}
|
||||||
|
|
||||||
emscripten:
|
emscripten:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user