mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #313] [MERGED] Fix the address of dispatch_rdma_recv_count_buffer in LL Layout to avoid cleaning after each change in hidden_size/token_num. #518
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#518
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/313
Author: @yilin-void
Created: 7/18/2025
Status: ✅ Merged
Merged: 7/29/2025
Merged by: @sphish
Base:
main← Head:better_layout_rebase📝 Commits (1)
d42e50dFix the address of dispatch_rdma_recv_count_buffer to avoid cleaning after each change in hidden_size/token_num.📊 Changes
1 file changed (+9 additions, -8 deletions)
View changed files
📝
csrc/config.hpp(+9 -8)📄 Description
Each time the
hidden_sizeornum_max_dispatch_tokens_per_rankin LL dispatch/combine changes, the address ofdispatch_rdma_recv_count_bufferalso changes. This causes the address pointed to bynext_cleanin the previous kernel to not be actually used, necessitating an additional clean operation (e.g., callingclean_low_latency_buffer).In this PR, I have placed the
dispatch_rdma_recv_count_bufferthat needs to be cleaned at the beginning of the entire RDMA buffer (aligned to 128B to ensure cacheline alignment). This ensures that regardless of changes inhidden_sizeornum_max_dispatch_tokens_per_rank, as long asnum_expertsremains the same, the correctdispatch_rdma_recv_count_bufferaddress will always be cleaned.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.