]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
vulkan: link ggml-cpu when GGML_VULKAN_CHECK_RESULTS / RUN_TESTS are enabled (llama...
authorWyatt Caldwell <redacted>
Tue, 23 Jun 2026 10:55:46 +0000 (03:55 -0700)
committerGeorgi Gerganov <redacted>
Fri, 26 Jun 2026 13:03:57 +0000 (16:03 +0300)
commite3c18388c503c3dfbcaf99c702a7ead8e5c355e7
treefae7c873b170299f88016a31df6738ceb105733c
parent2955e84ec39bb95e1706303dafb39e44d5b6c697
vulkan: link ggml-cpu when GGML_VULKAN_CHECK_RESULTS / RUN_TESTS are enabled (llama/24444)

The result-checking and test debug paths in ggml-vulkan.cpp call ggml_graph_compute_with_ctx() to compute a CPU reference graph, but that symbol is defined in ggml-cpu, which ggml-vulkan does not link. Enabling -DGGML_VULKAN_CHECK_RESULTS=ON (or -DGGML_VULKAN_RUN_TESTS=ON) therefore fails to link with an unresolved external (e.g. LNK2019 on MSVC, undefined reference on GCC/Clang). This regressed after ggml-cpu was split into its own library. Link ggml-cpu under those two options so the debug builds link again.

Signed-off-by: Wyatt Caldwell <redacted>
ggml/src/ggml-vulkan/CMakeLists.txt