@@ -223,9 +223,12 @@ jobs:
223
223
- arch : Win32
224
224
obzip : https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.25/OpenBLAS-0.3.25-x86.zip
225
225
s2arc : x86
226
+ clblast : OFF
226
227
- arch : x64
227
228
obzip : https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.25/OpenBLAS-0.3.25-x64.zip
228
229
s2arc : x64
230
+ clblast : ON
231
+ clver : 1.6.1
229
232
- sdl2 : ON
230
233
s2ver : 2.28.5
231
234
@@ -252,13 +255,26 @@ jobs:
252
255
7z x sdl2.zip
253
256
echo "SDL2_DIR=$env:GITHUB_WORKSPACE/SDL2-${{ matrix.s2ver }}/cmake" >> $env:GITHUB_ENV
254
257
258
+ - name : Install OpenCL
259
+ if : matrix.clblast == 'ON'
260
+ run : vcpkg.exe --triplet=${{ matrix.arch }}-windows install opencl
261
+
262
+ - name : Fetch CLBlast and set CLBlast_DIR
263
+ if : matrix.clblast == 'ON'
264
+ run : |
265
+ C:/msys64/usr/bin/wget.exe -qO clblast.zip https://github.com/CNugteren/CLBlast/releases/download/${{ matrix.clver }}/CLBlast-${{ matrix.clver }}-windows-x64.zip
266
+ 7z x clblast.zip
267
+ 7z x CLBlast-${{ matrix.clver }}-windows-x64.7z
268
+ echo "CLBlast_DIR=$env:GITHUB_WORKSPACE/CLBlast-${{ matrix.clver }}-windows-x64/lib/cmake/CLBlast" >> $env:GITHUB_ENV
269
+
255
270
- name : Configure
256
271
run : >
257
272
cmake -S . -B ./build -A ${{ matrix.arch }}
258
273
-DCMAKE_BUILD_TYPE=${{ matrix.build }}
259
274
-DWHISPER_OPENBLAS=${{ matrix.blas }}
260
275
-DCMAKE_LIBRARY_PATH="$env:OPENBLAS_PATH/lib"
261
276
-DWHISPER_SDL2=${{ matrix.sdl2 }}
277
+ -DWHISPER_CLBLAST=${{ matrix.clblast }}
262
278
263
279
- name : Build
264
280
run : |
@@ -273,11 +289,15 @@ jobs:
273
289
if : matrix.sdl2 == 'ON'
274
290
run : copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
275
291
292
+ - name : Copy clblast.dll
293
+ if : matrix.clblast == 'ON'
294
+ run : copy "$env:CLBlast_DIR/../../clblast.dll" build/bin/${{ matrix.build }}
295
+
276
296
- name : Upload binaries
277
297
if : matrix.blas == 'ON' && matrix.sdl2 == 'ON'
278
298
uses : actions/upload-artifact@v1
279
299
with :
280
- name : whisper-blas-bin-${{ matrix.arch }}
300
+ name : whisper-blas${{ matrix.clblast == 'ON' && '-clblast' || ''}} -bin-${{ matrix.arch }}
281
301
path : build/bin/${{ matrix.build }}
282
302
283
303
windows-cublas :
0 commit comments