[GH-ISSUE #152] Question about overlapping between promotion and wgmma #88

Closed
opened 2026-10-26 21:12:13 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @pengwubj on GitHub (Aug 4, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/152

Why isn't a barrier used to establish a deterministic execution order between two warpgroups, so that promotion can be well hidden within the matrix computation? While studying CUTLASS, I found that the ping-pong approach uses OrderedSequenceBarrier to serialize the execution of two warpgroups, and for example, FA3 uses NamedBarrier to coordinate between two warpgroups(FLashMLA in same way)。Of course, it seems that this can also be automatically achieved based on NVIDIA hardware's greedy warp scheduling strategy and FFMA interleave technology.
Could you share your insight and experience about this ? Thanks a lot!

Originally created by @pengwubj on GitHub (Aug 4, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/152 Why isn't a barrier used to establish a deterministic execution order between two warpgroups, so that promotion can be well hidden within the matrix computation? While studying CUTLASS, I found that the ping-pong approach uses `OrderedSequenceBarrier` to serialize the execution of two warpgroups, and for example, FA3 uses `NamedBarrier` to coordinate between two warpgroups(FLashMLA in same way)。Of course, it seems that this can also be automatically achieved based on NVIDIA hardware's greedy warp scheduling strategy and FFMA interleave technology. Could you share your insight and experience about this ? Thanks a lot!
Author
Owner

@LyricZhao commented on GitHub (Aug 14, 2025):

Barrier/sync costs a lot, we don't exchage data between two warpgroups. The overlapping is done by hardware warp scheduler.

<!-- gh-comment-id:3187571013 --> @LyricZhao commented on GitHub (Aug 14, 2025): Barrier/sync costs a lot, we don't exchage data between two warpgroups. The overlapping is done by hardware warp scheduler.
Author
Owner

@pengwubj commented on GitHub (Aug 14, 2025):

Thanks a lot !

<!-- gh-comment-id:3187873880 --> @pengwubj commented on GitHub (Aug 14, 2025): Thanks a lot !
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepGEMM#88
No description provided.