Skip to content

Commit e55f49a

Browse files
committed
ci : disable opencl + update old WHISPER_ options to GGML_
1 parent 3dc3b30 commit e55f49a

File tree

3 files changed

+9
-29
lines changed

3 files changed

+9
-29
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
source /opt/intel/oneapi/setvars.sh
201201
mkdir build
202202
cd build
203-
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 ..
204204
cmake --build . --config Release -j $(nproc)
205205
206206
ubuntu-22-cmake-sycl-fp16:
@@ -250,7 +250,7 @@ jobs:
250250
source /opt/intel/oneapi/setvars.sh
251251
mkdir build
252252
cd build
253-
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 ..
254254
cmake --build . --config Release -j $(nproc)
255255
256256
windows-msys2:
@@ -292,7 +292,7 @@ jobs:
292292
- name: Build using make w/ OpenBLAS
293293
shell: msys2 {0}
294294
run: |
295-
make WHISPER_OPENBLAS=1 -j $(nproc)
295+
make GGML_OPENBLAS=1 -j $(nproc)
296296
297297
- name: Build using CMake
298298
shell: msys2 {0}
@@ -308,7 +308,7 @@ jobs:
308308
- name: Build using CMake w/ OpenBLAS
309309
shell: msys2 {0}
310310
run: |
311-
cmake -B build -DWHISPER_OPENBLAS=ON
311+
cmake -B build -DGGML_OPENBLAS=ON
312312
cmake --build build --config ${{ matrix.build }} -j $(nproc)
313313
314314
windows:
@@ -384,12 +384,9 @@ jobs:
384384
- arch: Win32
385385
obzip: https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.25/OpenBLAS-0.3.25-x86.zip
386386
s2arc: x86
387-
clblast: OFF
388387
- arch: x64
389388
obzip: https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.25/OpenBLAS-0.3.25-x64.zip
390389
s2arc: x64
391-
clblast: ON
392-
clver: 1.6.1
393390
- sdl2: ON
394391
s2ver: 2.28.5
395392

@@ -416,26 +413,13 @@ jobs:
416413
7z x sdl2.zip
417414
echo "SDL2_DIR=$env:GITHUB_WORKSPACE/SDL2-${{ matrix.s2ver }}/cmake" >> $env:GITHUB_ENV
418415
419-
- name: Install OpenCL
420-
if: matrix.clblast == 'ON'
421-
run: vcpkg.exe --triplet=${{ matrix.arch }}-windows install opencl
422-
423-
- name: Fetch CLBlast and set CLBlast_DIR
424-
if: matrix.clblast == 'ON'
425-
run: |
426-
C:/msys64/usr/bin/wget.exe -qO clblast.zip https://github.com/CNugteren/CLBlast/releases/download/${{ matrix.clver }}/CLBlast-${{ matrix.clver }}-windows-x64.zip
427-
7z x clblast.zip
428-
7z x CLBlast-${{ matrix.clver }}-windows-x64.7z
429-
echo "CLBlast_DIR=$env:GITHUB_WORKSPACE/CLBlast-${{ matrix.clver }}-windows-x64/lib/cmake/CLBlast" >> $env:GITHUB_ENV
430-
431416
- name: Configure
432417
run: >
433418
cmake -S . -B ./build -A ${{ matrix.arch }}
434419
-DCMAKE_BUILD_TYPE=${{ matrix.build }}
435-
-DWHISPER_OPENBLAS=${{ matrix.blas }}
420+
-DGGML_OPENBLAS=${{ matrix.blas }}
436421
-DCMAKE_LIBRARY_PATH="$env:OPENBLAS_PATH/lib"
437422
-DWHISPER_SDL2=${{ matrix.sdl2 }}
438-
-DWHISPER_CLBLAST=${{ matrix.clblast }}
439423
440424
- name: Build
441425
run: |
@@ -450,15 +434,11 @@ jobs:
450434
if: matrix.sdl2 == 'ON'
451435
run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
452436

453-
- name: Copy clblast.dll
454-
if: matrix.clblast == 'ON'
455-
run: copy "$env:CLBlast_DIR/../../clblast.dll" build/bin/${{ matrix.build }}
456-
457437
- name: Upload binaries
458438
if: matrix.blas == 'ON' && matrix.sdl2 == 'ON'
459439
uses: actions/upload-artifact@v4
460440
with:
461-
name: whisper-blas${{ matrix.clblast == 'ON' && '-clblast' || ''}}-bin-${{ matrix.arch }}
441+
name: whisper-blas-bin-${{ matrix.arch }}
462442
path: build/bin/${{ matrix.build }}
463443

464444
windows-cublas:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ Now build `whisper.cpp` with CUDA support:
418418

419419
```
420420
make clean
421-
WHISPER_CUDA=1 make -j
421+
GGML_CUDA=1 make -j
422422
```
423423

424424
## BLAS CPU support via OpenBLAS
@@ -430,7 +430,7 @@ Now build `whisper.cpp` with OpenBLAS support:
430430

431431
```
432432
make clean
433-
WHISPER_OPENBLAS=1 make -j
433+
GGML_OPENBLAS=1 make -j
434434
```
435435

436436
## BLAS CPU support via Intel MKL

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (WHISPER_COREML)
2424
endif()
2525
endif()
2626

27-
if( WHISPER_OPENVINO )
27+
if (WHISPER_OPENVINO)
2828
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
2929
endif()
3030

0 commit comments

Comments
 (0)