From: Acly Date: Sun, 30 Nov 2025 00:03:21 +0000 (+0100) Subject: vulkan : fix FA mask load with bounds check (coopmat2) (#17606) X-Git-Tag: upstream/0.0.7446~245 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=385c3da5e6be372e86023d640115514187137ce4;p=pkg%2Fggml%2Fsources%2Fllama.cpp vulkan : fix FA mask load with bounds check (coopmat2) (#17606) --- diff --git a/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp b/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp index 617d8510..9a719963 100644 --- a/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp +++ b/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp @@ -156,7 +156,7 @@ void main() { tensorLayoutM = setTensorLayoutStrideNV(tensorLayoutM, m_stride, 1); tensorLayoutM = setTensorLayoutClampValueNV(tensorLayoutM, 0xfc00); // -inf in float16_t - coopmat mv, mvmax; + coopmat mvmax; coopMatLoadTensorNV(mv, data_m, m_offset, sliceTensorLayoutNV(tensorLayoutM, i * Br, Br, j * Bc, Bc));