]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
vulkan: fix coopmat shader generation when cross-compiling (llama/12272)
authorIcenowy Zheng <redacted>
Fri, 28 Mar 2025 17:51:06 +0000 (01:51 +0800)
committerGeorgi Gerganov <redacted>
Fri, 28 Mar 2025 19:47:42 +0000 (21:47 +0200)
commit1b81415963b5238f8f358827a5b6798372ea082e
treeccf5a8600c8e01c32f7f882d773d40b5661e4e31
parent0001ec075f361c704ed817d532092ee1b5599024
vulkan: fix coopmat shader generation when cross-compiling (llama/12272)

* vulkan: fix coopmat shader generation when cross-compiling

Previously the status of coopmat{,2} support isn't passed to the
vulkan-shaders-gen project building on the host, which leads to build
failure because of the cross-compiling code expecting coopmat{,2}
shaders that didn't get generated.

Fix this by passing the coopmat{,2} support status to vulkan-shaders
subproject.

Signed-off-by: Icenowy Zheng <redacted>
* Only call coop-mat shaders once

* Fix whitespace

---------

Signed-off-by: Icenowy Zheng <redacted>
Co-authored-by: bandoti <redacted>
ggml/src/ggml-vulkan/CMakeLists.txt
ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt