vulkan: Fix OOB accesses in soft_max_back (#15861)

This commit is contained in:
Jeff Bolz
2025-09-09 07:41:15 -05:00
committed by GitHub
parent 17bc5a815f
commit 4f63cd705c
3 changed files with 7 additions and 2 deletions

View File

@@ -20,6 +20,10 @@ void main() {
const uint row = gl_WorkGroupID.z * 262144 + gl_WorkGroupID.y * 512 + gl_WorkGroupID.x;
const uint tid = gl_LocalInvocationID.x;
if (row >= p.KY) {
return;
}
FLOAT_TYPE scale = p.param1;
// partial sums for thread in warp