@@ -101,7 +101,10 @@ jobs:
101
101
fail-fast : false
102
102
matrix :
103
103
build : [Debug, Release]
104
- arch : [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
104
+ # arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
105
+ # TODO: arm/v7 disabled due to clang bug
106
+ # https://github.com/ggerganov/whisper.cpp/actions/runs/9657764109/job/26637633042?pr=2256#step:4:1990
107
+ arch : [linux/amd64, linux/arm64, linux/ppc64le]
105
108
106
109
steps :
107
110
- name : Clone
@@ -197,7 +200,7 @@ jobs:
197
200
source /opt/intel/oneapi/setvars.sh
198
201
mkdir build
199
202
cd build
200
- cmake -DWHISPER_SYCL =ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
203
+ cmake -DGGML_SYCL =ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
201
204
cmake --build . --config Release -j $(nproc)
202
205
203
206
ubuntu-22-cmake-sycl-fp16 :
@@ -247,7 +250,7 @@ jobs:
247
250
source /opt/intel/oneapi/setvars.sh
248
251
mkdir build
249
252
cd build
250
- cmake -DWHISPER_SYCL_F16 =ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
253
+ cmake -DGGML_SYCL_F16 =ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
251
254
cmake --build . --config Release -j $(nproc)
252
255
253
256
windows-msys2 :
@@ -289,7 +292,7 @@ jobs:
289
292
- name : Build using make w/ OpenBLAS
290
293
shell : msys2 {0}
291
294
run : |
292
- make WHISPER_OPENBLAS =1 -j $(nproc)
295
+ make GGML_OPENBLAS =1 -j $(nproc)
293
296
294
297
- name : Build using CMake
295
298
shell : msys2 {0}
@@ -305,7 +308,7 @@ jobs:
305
308
- name : Build using CMake w/ OpenBLAS
306
309
shell : msys2 {0}
307
310
run : |
308
- cmake -B build -DWHISPER_OPENBLAS =ON
311
+ cmake -B build -DGGML_OPENBLAS =ON
309
312
cmake --build build --config ${{ matrix.build }} -j $(nproc)
310
313
311
314
windows :
@@ -381,12 +384,9 @@ jobs:
381
384
- arch : Win32
382
385
obzip : https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.25/OpenBLAS-0.3.25-x86.zip
383
386
s2arc : x86
384
- clblast : OFF
385
387
- arch : x64
386
388
obzip : https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.25/OpenBLAS-0.3.25-x64.zip
387
389
s2arc : x64
388
- clblast : ON
389
- clver : 1.6.1
390
390
- sdl2 : ON
391
391
s2ver : 2.28.5
392
392
@@ -413,26 +413,13 @@ jobs:
413
413
7z x sdl2.zip
414
414
echo "SDL2_DIR=$env:GITHUB_WORKSPACE/SDL2-${{ matrix.s2ver }}/cmake" >> $env:GITHUB_ENV
415
415
416
- - name : Install OpenCL
417
- if : matrix.clblast == 'ON'
418
- run : vcpkg.exe --triplet=${{ matrix.arch }}-windows install opencl
419
-
420
- - name : Fetch CLBlast and set CLBlast_DIR
421
- if : matrix.clblast == 'ON'
422
- run : |
423
- C:/msys64/usr/bin/wget.exe -qO clblast.zip https://github.com/CNugteren/CLBlast/releases/download/${{ matrix.clver }}/CLBlast-${{ matrix.clver }}-windows-x64.zip
424
- 7z x clblast.zip
425
- 7z x CLBlast-${{ matrix.clver }}-windows-x64.7z
426
- echo "CLBlast_DIR=$env:GITHUB_WORKSPACE/CLBlast-${{ matrix.clver }}-windows-x64/lib/cmake/CLBlast" >> $env:GITHUB_ENV
427
-
428
416
- name : Configure
429
417
run : >
430
418
cmake -S . -B ./build -A ${{ matrix.arch }}
431
419
-DCMAKE_BUILD_TYPE=${{ matrix.build }}
432
- -DWHISPER_OPENBLAS =${{ matrix.blas }}
420
+ -DGGML_OPENBLAS =${{ matrix.blas }}
433
421
-DCMAKE_LIBRARY_PATH="$env:OPENBLAS_PATH/lib"
434
422
-DWHISPER_SDL2=${{ matrix.sdl2 }}
435
- -DWHISPER_CLBLAST=${{ matrix.clblast }}
436
423
437
424
- name : Build
438
425
run : |
@@ -447,15 +434,11 @@ jobs:
447
434
if : matrix.sdl2 == 'ON'
448
435
run : copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
449
436
450
- - name : Copy clblast.dll
451
- if : matrix.clblast == 'ON'
452
- run : copy "$env:CLBlast_DIR/../../clblast.dll" build/bin/${{ matrix.build }}
453
-
454
437
- name : Upload binaries
455
438
if : matrix.blas == 'ON' && matrix.sdl2 == 'ON'
456
439
uses : actions/upload-artifact@v4
457
440
with :
458
- name : whisper-blas${{ matrix.clblast == 'ON' && '-clblast' || ''}} -bin-${{ matrix.arch }}
441
+ name : whisper-blas-bin-${{ matrix.arch }}
459
442
path : build/bin/${{ matrix.build }}
460
443
461
444
windows-cublas :
@@ -498,7 +481,7 @@ jobs:
498
481
run : >
499
482
cmake -S . -B ./build -A ${{ matrix.arch }}
500
483
-DCMAKE_BUILD_TYPE=${{ matrix.build }}
501
- -DWHISPER_CUDA =${{ matrix.cublas }}
484
+ -DGGML_CUDA =${{ matrix.cublas }}
502
485
-DWHISPER_SDL2=${{ matrix.sdl2 }}
503
486
504
487
- name : Build ${{ matrix.cuda-toolkit }}
0 commit comments