From: Jeff Bolz Date: Tue, 24 Feb 2026 06:48:32 +0000 (-0600) Subject: vulkan: fix coopmat1 without bf16 support (llama/19793) X-Git-Tag: upstream/1.8.4~116 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=dcc877688df2c1b57c34f09c5b4b194e8f86a09a;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp vulkan: fix coopmat1 without bf16 support (llama/19793) --- diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index a8840a07..88b3e4e5 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -3780,10 +3780,12 @@ static void ggml_vk_load_shaders(vk_device& device) { && !device->coopmat_bf16_support #endif ) { + const uint32_t s_warptile_wm = device->subgroup_size == 8 ? 8 : 32; + // use scalar tile sizes l_warptile = { 128, 128, 128, 16, subgroup_size_8 * 2, 64, 2, 4, 4, 1, subgroup_size_8 }; m_warptile = { 128, 64, 64, 16, subgroup_size_8, 32, 2, 4, 2, 1, subgroup_size_8 }; - s_warptile = { subgroup_size_16, 32, 32, 16, 32, 32, 2, 2, 2, 1, subgroup_size_8 }; + s_warptile = { subgroup_size_32, 32, 32, 16, s_warptile_wm, 32, 2, 2, 2, 1, subgroup_size_8 }; l_wg_denoms = {128, 128, 1 }; m_wg_denoms = { 64, 64, 1 };