mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #538] [CLOSED] Use atomicMax instead of atomicAdd for wait_recv_cost_stats #621
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepEP#621
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepEP/pull/538
Author: @yurekami
Created: 12/25/2025
Status: ❌ Closed
Base:
main← Head:fix-wait-stats-atomicmax📝 Commits (1)
a0f153fUse atomicMax instead of atomicAdd for wait_recv_cost_stats📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
csrc/kernels/internode_ll.cu(+2 -2)📄 Description
Summary
atomicAddtoatomicMaxfordispatch_wait_recv_cost_statsandcombine_wait_recv_cost_statsChanges
csrc/kernels/internode_ll.cu:418- dispatch statscsrc/kernels/internode_ll.cu:973- combine statsRationale
As noted in #473, when multiple warps receive data from the same source rank in parallel, using
atomicAddto sum their wait times doesn't provide meaningful insights. UsingatomicMaxinstead captures the maximum wait time observed, which:Fixes #473
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.