diff --git a/CMakeLists.txt b/CMakeLists.txt index c53252ba..b419fc3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/README.md b/README.md index c02f66b8..e2c1f620 100644 --- a/README.md +++ b/README.md @@ -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