]> git.djapps.eu Git - pkg/ggml/sources/ggml/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 18:57:36 +0000 (20:57 +0200)
commita31c1d76d688eff4458871112bf86ef403aeca65
treefb9dd2c3aa895f410e06803883a349ff4f53dc32
parent7f7b1708e2695d8ac2113b05f455a96a4f5d90bd
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>
src/ggml-vulkan/CMakeLists.txt
src/ggml-vulkan/vulkan-shaders/CMakeLists.txt