[CRL] Add intra-node P2P transport and migrate to window-based API#494
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a window-based, stream-integrated one-sided RMA API (intended to be NCCL-aligned) and adds an intra-node D2D “bypass” path in the hetero RMA proxy, while updating the host_api perf benchmarks and CI to exercise the new API.
Changes:
- Replaces the public
flagcxPutSignal/flagcxSignal/flagcxWaitSignalAPI surface with new window/stream-based signatures and updates the host_api perf tests accordingly. - Extends the hetero RMA proxy with GPU-visible completion sequence counters for stream-based flush/wait, plus initial scaffolding for intra-node IPC/D2D bypass.
- Adds a new RMA test script and a GitHub Actions workflow to build and run the perf-based RMA tests.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| test/script/rma_test.sh | New script to run RMA perf binaries under MPI. |
| test/perf/host_api/test_put.cpp | Migrates put benchmark to window-based RMA API. |
| test/perf/host_api/test_one_side_register.cpp | Migrates multi-comm one-sided registration test to window-based API. |
| test/perf/host_api/test_get.cpp | Migrates get benchmark signaling/waiting to the new API. |
| flagcx/include/flagcx.h | Updates public one-sided API declarations to window/stream-based forms. |
| flagcx/flagcx.cc | Implements the new high-level one-sided APIs and WaitSignal logic. |
| flagcx/core/include/flagcx_hetero.h | Adds hetero proxy state for stream-based synchronization and IPC bypass. |
| flagcx/core/flagcx_hetero.cc | Implements stream-based flush and intra-node D2D bypass helpers. |
| .github/workflows/unittest-rma.yml | Adds CI job to build and run the RMA perf tests. |
Comments suppressed due to low confidence (1)
test/perf/host_api/test_one_side_register.cpp:69
- Receiver waits with
desc = {1, senderRank}but the current flagcxWaitSignal implementation flushes local outgoing opSeqs for that peer, so it won't reliably wait for the incoming PutSignal completion in this test.
flagcxWaitSignalDesc_t desc = {1, senderRank};
res = flagcxWaitSignal(1, &desc, comm, waitStream);
if (res != flagcxSuccess) {
fprintf(stderr, "[rank %d] flagcxWaitSignal failed (err=%d)\n", proc,
int(res));
return false;
}
devHandle->streamSynchronize(waitStream);
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MC952-arch
added a commit
to MC952-arch/FlagCX
that referenced
this pull request
Jun 9, 2026
…D signal path, and polish
MC952-arch
added a commit
to MC952-arch/FlagCX
that referenced
this pull request
Jun 9, 2026
…D signal path, and polish
1eea64e to
ae2f566
Compare
MC952-arch
added a commit
to MC952-arch/FlagCX
that referenced
this pull request
Jun 10, 2026
…D signal path, and polish
…D signal path, and polish
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.
PR Category
CRL
PR Types
New Features
PR Description
This PR introduces a window-based, stream-integrated one-sided RMA API (intended to be NCCL-aligned) and adds an intra-node D2D “bypass” path in the hetero RMA proxy, while updating the host_api perf benchmarks and CI to exercise the new API.