Add VULKAN option for cmake and doc in readme

This commit is contained in:
DrEmixam 2024-11-27 05:29:19 +01:00
parent 8c6a9b8bb6
commit 2e1fb518d1
2 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
option(WHISPER_FFMPEG "whisper: support building and linking with ffmpeg libs (avcodec, swresample, ...)" OFF)
endif()
option(GGML_VULKAN "ggml: support for Vulkan" OFF)
option(WHISPER_COREML "whisper: enable Core ML framework" OFF)
option(WHISPER_COREML_ALLOW_FALLBACK "whisper: allow non-CoreML fallback" OFF)
option(WHISPER_OPENVINO "whisper: support for OpenVINO" OFF)

View File

@ -439,6 +439,11 @@ Now build `whisper.cpp` with Vulkan support:
make clean
make GGML_VULKAN=1 -j
```
with cmake
```
cmake -B build -DGGML_VULKAN=1
cmake --build build -j --config Release
```
## BLAS CPU support via OpenBLAS