Repository navigation
[PG][4b/N] Add NCCL device route (LSA + GIN) - #5364
Open
caozhanhao wants to merge 1 commit into
Open
caozhanhao wants to merge 1 commit into
caozhanhao wants to merge 1 commit into
Conversation
caozhanhao
requested review from
UNIDY2002,
alogfans,
chestnut-Q,
doujiang24,
staryxchen,
ympcMark and
yuechen-sys
as code owners
November 9, 2026 13:19
6 of 29 tasks
This was referenced Nov 9, 2026
caozhanhao
force-pushed
the
czh/pg-device-collectives-pr4-split
branch
from
November 9, 2026 14:14
1c9ff68 to
984ebc4
Compare
Signed-off-by: caozhanhao <cao2013zh@163.com>
yuechen-sys
force-pushed
the
czh/pg-device-collectives-pr4-split
branch
from
November 10, 2026 07:37
984ebc4 to
78468c6
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part of #3483 (Phase 2), stacked on #4575.
This PR adds the NCCL device route described in 4a/N (#4575). Please see that PR for the end-to-end design of coordinated endpoint installation, two-phase route updates, pause/resume, and communicator switching.
On top of that mechanism, this PR implements:
current/pending/ retired communicator generations.User-visible behavior
USE_NCCL_DEVICE=ONrequires NCCL >= 2.31.2 for timeout support inncclGin::wait().MOONCAKE_PG_DISABLE_NCCL_DEVICE_ROUTE=0to enable it.Known limitations
The current NCCL device route keeps all retired generations until shutdown. As a result, repeated installations accumulate NCCL communicators and their resources.
The intended design is to reclaim retired generations whose versions are below
reclaim_before_version. However, reclaiming them eagerly during installation led to deadlocks in end-to-end tests, and we have not yet identified the cause.The VA-signal access issue raised in review is also still open: GIN updates VA signals, while
TransferLane::waitSignal()reads them using ordinary CUDA loads. The signal-access fix is not included in this split.Suggested Merge Priority
Module
mooncake-transfer-engine)mooncake-store)mooncake-conductor)mooncake-reshard)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
All tests under
mooncake-pg/testspassed.Checklist
Signed-off-bytrailer certifying the DCO./scripts/code_format.shAI Assistance Disclosure
Codex was used to assist in designing and implementing this PR. All code and architectural changes have been thoroughly reviewed and verified by me in person.