bobqianic commited on
Commit
8eaa345
·
unverified ·
1 Parent(s): c093ec4

CI : Add CUDA 11.8.0 support (#1554)

Browse files

* try to fix cublas build in CI

* add multiple cuda-toolkit version

* Update build.yml

* Disable CUDA-toolkit 10.2.89

Files changed (1) hide show
  1. .github/workflows/build.yml +7 -4
.github/workflows/build.yml CHANGED
@@ -290,6 +290,7 @@ jobs:
290
  arch: [x64]
291
  cublas: [ON]
292
  sdl2: [ON]
 
293
  include:
294
  - arch: x64
295
  s2arc: x64
@@ -305,7 +306,9 @@ jobs:
305
 
306
  - name: Install CUDA Toolkit
307
  id: cuda-toolkit
308
- uses: Jimver/[email protected].10
 
 
309
 
310
  - name: Fetch SDL2 and set SDL2_DIR
311
  if: matrix.sdl2 == 'ON'
@@ -320,10 +323,10 @@ jobs:
320
  -DCMAKE_BUILD_TYPE=${{ matrix.build }}
321
  -DWHISPER_CUBLAS=1
322
 
323
- - name: Build
324
  run: |
325
  cd ./build
326
- msbuild ALL_BUILD.vcxproj -t:build -p:configuration=${{ matrix.build }} -p:platform=${{ matrix.arch }}
327
 
328
  - name: Copy CUDA DLLs
329
  run: >
@@ -340,7 +343,7 @@ jobs:
340
  if: matrix.sdl2 == 'ON'
341
  uses: actions/upload-artifact@v1
342
  with:
343
- name: whisper-cublas-bin-${{ matrix.arch }}
344
  path: build/bin/${{ matrix.build }}
345
 
346
  emscripten:
 
290
  arch: [x64]
291
  cublas: [ON]
292
  sdl2: [ON]
293
+ cuda-toolkit: [12.2.0, 11.8.0]
294
  include:
295
  - arch: x64
296
  s2arc: x64
 
306
 
307
  - name: Install CUDA Toolkit
308
  id: cuda-toolkit
309
+ uses: Jimver/[email protected].11
310
+ with:
311
+ cuda: '${{ matrix.cuda-toolkit }}'
312
 
313
  - name: Fetch SDL2 and set SDL2_DIR
314
  if: matrix.sdl2 == 'ON'
 
323
  -DCMAKE_BUILD_TYPE=${{ matrix.build }}
324
  -DWHISPER_CUBLAS=1
325
 
326
+ - name: Build ${{ matrix.cuda-toolkit }}
327
  run: |
328
  cd ./build
329
+ cmake --build . --config ${{ matrix.build }}
330
 
331
  - name: Copy CUDA DLLs
332
  run: >
 
343
  if: matrix.sdl2 == 'ON'
344
  uses: actions/upload-artifact@v1
345
  with:
346
+ name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
347
  path: build/bin/${{ matrix.build }}
348
 
349
  emscripten: