mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #696] Fix legacy RC QP indexing for NVSHMEM 3.5.19+ #713
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#713
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/696
Author: @caoxiaoyuyuyuyuyu
Created: 7/23/2026
Status: 🔄 Open
Base:
main← Head:fix/nvshmem-rc-qp-index📝 Commits (2)
d268280fix: select NVSHMEM RC QPs by runtime layout2c70ee1fix: reject incompatible NVSHMEM runtime layouts📊 Changes
2 files changed (+58 additions, -10 deletions)
View changed files
📝
csrc/kernels/backend/nvshmem.cu(+41 -4)📝
csrc/kernels/legacy/ibgda_device.cuh(+17 -6)📄 Description
Background
The legacy IBGDA path currently indexes
globalmem.rcsas PE-major. That matches NVSHMEM 3.4.5 and earlier, but NVSHMEM changed RC QP allocation to QP-major, PE-interleaved order in NVIDIA/nvshmem@ce9d487252. The change is included in NVSHMEM 3.5.19 and later.With NVSHMEM 3.7.2, the old expression can select another PE RC QP. All ranks may initialize successfully, then the first cross-node dispatch stops making progress and can eventually surface a CUDA fault.
Change
queue * npes + pefor NVSHMEM 3.5.19 and later.pe * queues_per_pe + queuefor older supported NVSHMEM releases.Validation
d268280) successfully for SM 10.3 with CUDA 13, NVSHMEM 3.7.2, and NCCL 2.30.7;cuobjdumpconfirmsarch = sm_103.nvshmemx_vendor_get_version_infoand all three vendor version macros are available.torch.OutOfMemoryErrorwhile materializing FP32 vocabulary logits. The failure was outside DeepEP/NVSHMEM; no transport or device-fault signature preceded it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.