Repository navigation
vulkan: Divide GROUP_NORM workgroup to 2D to avoid maxComputeWorkGroupCount limit - #31930
Conversation
ServeurpersoCom
left a comment
There was a problem hiding this comment.
Tested on Vulkan with an RTX PRO 6000 in a rootless container, with maxComputeWorkGroupCount capped at 65535 to match the Intel runner: without this PR GROUP_NORM ne=[3,1,1,65537] hits the same GGML_ASSERT as the CI, and with it the dispatch splits into 65535 x 2 and all GROUP_NORM cases pass.
This fixes the GROUP_NORM assert currently failing gpu-vulkan-intel-windows on master (and gpu-vulkan-intel-linux on #31890), the Apple failure being handled by #31890. I started the CI on this PR: the Intel jobs still need to finish green, which they most likely will.
Note: reusing ggml_vk_nrows_elements would also work here and keep the same 512 x 512 grid and row index as the other per-row ops, at most 511 idle workgroups instead of up to ~65k on a 65535 limit, but both are correct.
jeffbolznv
left a comment
There was a problem hiding this comment.
LGTM, but I didn't test.
|
@0cc4m Bump - would be nice clear the CI error. |
Overview
Fixes #31926. We are dividing the GROUP_NORM workgroup to 2D to avoid maxComputeWorkGroupCount limit on Windows Intel GPU.
Additional information
Requirements