From: Acly Date: Sun, 30 Nov 2025 00:03:21 +0000 (+0100) Subject: vulkan : fix FA mask load with bounds check (coopmat2) (llama/17606) X-Git-Tag: upstream/1.8.3~215 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2258930c2e0eeafbad3de3d0fc78866d376abdd2;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp vulkan : fix FA mask load with bounds check (coopmat2) (llama/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));