← Back to Pull requests

[rccl] DDA AlltoAll (IPC and fabric pull): stage input inside the kernel #16033

Open
thananon opened this pull request with 186 lines diff across 9 files
View on GitHub
thananon thananon commented on Nov 17, 2026 18:19 UTC
Author

Motivation

The DDA IPC AlltoAll (gfx942/gfx950, 1 node, 8 ranks, up to 4 MiB) stages sendbuff into the IPC scratch with a host cudaMemcpyAsync whenever the grid has more than one block, i.e. above 8 KiB per peer. The in-kernel copy was only used for single-block grids. It is a flat strided copy over all 8 count elements, so with more than one block the same-block-index barrier does not cover what other blocks copied. The extra memcpy before the kernel costs ~3-4 us per call from 64K up.

Technical Details

  • alltoall_dda.h: the staging copy is partitioned the same way as the read loop. Block b copies idx + r count for every idx in its own stride set, which is exactly what block b on each peer reads after the barrier. The same-block-index barrier then publishes the staged data for any grid size. The kStagingCopyInKernel template parameter is removed.

  • dda_alltoall_ipc.cu: always launches the in-kernel staging variant; the pre-kernel cudaMemcpyAsync is gone.

  • In-place stays safe: each block writes only the recvbuff elements it read from sendbuff before the barrier.

  • Back-to-back calls: unchanged argument. A rank's kernel completes only after every block passes the end barrier, so all peer reads of its scratch are done before the next call writes it.

  • gfx1250 fabric pull kernel (ddaAllToAllFabric, used only with RCCL_DDA_A2A_PUSH=0): same block-partitioned in-kernel staging before its existing release-acquire same-block-index barrier; the pre-kernel cudaMemcpyAsync is gone and the kernel takes sendbuff (same argument position as the push kernel). The default push kernels already read sendbuff in the kernel and are unchanged.

  • Multi-node AlltoAll is untouched.

  • Tests: the IPC and fabric-pull launcher microtests now check that every grid size launches the kernel with no pre-kernel copy (the fabric test also checks the new sendbuff argument). The IPC launcher microtest checks that multi-block grids launch the same kernel with no pre-kernel copy. The two gfx950 tests and helper that mirrored the removed single-block/memcpy split are deleted.
  • Issue Tracking

    None.

    Test Plan

    MI300X (gfx942), 1 node, 8 ranks (1 process per GPU), bf16, develop 9e9bdcd with and without the change:

  • rccl-tests alltoall_perf -g 1 -d bfloat16 -b 1K -e 8M -f 2 -w 10 -n 50 -c 1, 3 interleaved runs per library; the TUNING log shows the DDA path (algo=18) for both.

  • A control build that selects the old host-memcpy path at runtime, to separate the change from build differences.

  • CollectBench RCCL A/B with validation on, same sizes.
  • Test Result

    rccl-tests out-of-place time (us), median of 3:

    | size | before | after | change |
    |---|---|---|---|
    | 1K | 7.27 | 7.60 | +4.5% |
    | 2K | 7.20 | 7.39 | +2.6% |
    | 8K | 9.05 | 7.43 | -18% |
    | 32K | 10.53 | 9.36 | -11% |
    | 64K | 14.48 | 12.07 | -17% |
    | 256K | 15.87 | 12.23 | -23% |
    | 1M | 18.58 | 15.55 | -16% |
    | 2M | 23.63 | 20.24 | -14% |
    | 4M | 31.94 | 30.44 | -5% |
    | 8M | 39.20 | 39.15 | above the DDA cap |

  • #wrong = 0 in every row. rccl-tests does not validate in-place AlltoAll (N/A).

  • A control build with the old host-memcpy path selected at runtime matched the baseline (64K 14.66 us), so the gain is the removed pre-copy.

  • A CollectBench RCCL A/B (sub-iterations, validation on) agrees: -15..-25% at 64K-2M, -6% at 4M.
  • Caveats:

  • 1K-2K is +0.2-0.3 us: the single-block copy now has 8 vectors per active thread instead of 1.

  • Measured on gfx942 only; gfx950 takes the same code path but is untested.

  • The fabric pull change (gfx1250, RCCL_DDA_A2A_PUSH=0 only) is not measured on hardware.

  • The hardware runs used the same kernel body on 9e9bdcd. This branch (on current develop, same DDA AlltoAll sources) has not been rebuilt locally; CI is the first build of it and of the updated host unit tests.

  • With RCCL_DDA_THRESHOLD raised above the 4 MiB default cap, the in-kernel copy runs at sizes not measured here.
  • Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
  • Diff: 186 lines (+72 / -114) across 9 files Reviewer: srirajpaul Review duration: 25306m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.46) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 186 lines diff across 9 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.90 · 5 substantive comment(s)
    0.90
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.313
    Real PR Conversation Timeline
    26 items
    therock-pr-bot[bot] therock-pr-bot[bot] commented on Nov 17, 2026 18:20 UTC
    Bot

    <!-- therock-pr-bot-policy-check -->

    ❌ PR Check — Action Required

    | Check | Status | Details |
    |---|:---:|---|
    | 📝 PR Description | ❌ Fail | Error: PR description must reference a JIRA ID, ISSUE ID, or a GitHub closing keyword.<br>Expected: include a JIRA ID / ISSUE ID line (separator : or -, or omitted; value may be a JIRA key, a number with/without #, or a link), OR a closing keyword + issue reference. Accepted examples:<br>• JIRA ID : TESTAUTO-6039<br>• JIRA ID - #330<br>• JIRA ID #330<br>• JIRA ID (on separate line)<br>ROCM-25757<br>• ISSUE ID : TESTUTO-3334<br>• ISSUE ID #3334<br>• ISSUE ID - TESTAUTO-3433<br>• ISSUE ID (on separate line)<br>AIRUNTIME-2352<br>• ISSUE ID : https://github.com/<org_name>/<repo_name>/issues/1234<br>• Closes #10<br>• Fixes octo-org/octo-repo#100<br>• Resolves: #123<br>• #123<br>• https://github.com/<org_name>/<repo_name>/issues/123<br>Current: no valid JIRA/ISSUE/closing-keyword reference found |
    | ⛔ Forbidden Files | ✅ Pass | — |
    | 🧪 Unit Test | ⚠️ Warning | Error: Source/code files changed without an accompanying unit test.<br>Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).<br>Current: code file(s) changed: projects/rccl/src/algorithms/dda/alltoall/alltoall_dda.h, projects/rccl/src/algorithms/dda/alltoall/alltoall_dda_fabric.h, projects/rccl/src/algorithms/dda/device/CollCommon.h, projects/rccl/test/DdaAlltoAllThresholdTests.cpp, projects/rccl/test/common/DdaAlltoAllTestHelpers.hpp (+2 more); no test file found |
    | 🔎 pre-commit | ✅ Pass | Not applicable — this repo has no pre-commit workflow. |
    | 🚫 Draft PR | 🔜 To Be Enabled | — |
    | 🚩 Feature Flag | 🔜 To Be Enabled | — |
    | 📊 Code Coverage | 🔜 To Be Enabled | — |

    ⚠️ 1 policy check(s) failed. Please address the issues above before this PR can be Reviewed.

    > 🚫 Please fix the failed policies

    - ❌ PR Description

    > The Not ready to Review label was added to this PR. Once all policies pass, the label is removed automatically.

    📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

    🙋 Wish to Override Policy?

    therock-pr-bot[bot] therock-pr-bot[bot] commented on Nov 17, 2026 18:20 UTC
    Bot

    <!-- therock-pr-bot-fix-policies -->
    🚫 Please fix the failed policies before requesting reviews.

    The following policy checks failed:

  • ❌ PR Description
  • The Not ready to Review label has been added to this PR.
    Once all policies pass, the label will be removed automatically.

    Copilot Copilot commented on code on Nov 17, 2026 18:55 UTC
    Code Review
    projects/rccl/test/host/algorithms/dda/alltoall/dda-alltoall-ipc-test.cc:1
    @@ -153,28 +152,21 @@ TEST_F(DdaAlltoallIpcMicrotest, Launch_WholeSendBufferMayFillScratchExactly) {
     TEST_F(DdaAlltoallIpcMicrotest, Launch_SingleBlockPayloadStagesInsideTheKernel) {
       ASSERT_EQ(Run(kSingleBlockFloats - 4), ncclSuccess);
       ASSERT_EQ(g_ddaLaunches.size(), 1u);
    -  EXPECT_EQ(g_ddaLaunches[0].kernel, Kernel<true>());
    +  EXPECT_EQ(g_ddaLaunches[0].kernel, Kernel());
       EXPECT_EQ(g_ddaLaunches[0].grid.x, 1u);
       EXPECT_TRUE(copies_.empty());
     }
     
    -TEST_F(DdaAlltoallIpcMicrotest, Launch_LargerPayloadIsStagedIntoScratchBeforeTheKernel) {
    -  ASSERT_EQ(Run(kSingleBlockFloats), ncclSuccess);
    -  ASSERT_EQ(g_ddaLaunches.size(), 1u);
    -  EXPECT_EQ(g_ddaLaunches[0].kernel, Kernel<false>());
    -  ASSERT_EQ(copies_.size(), 1u);
    -  EXPECT_EQ(copies_[0].dst, comm().ddaScratch);
    -  EXPECT_EQ(copies_[0].src, kSendbuff);
    -  EXPECT_EQ(copies_[0].bytes, 8 * kSingleBlockFloats * 4);
    -  EXPECT_EQ(copies_[0].kind, hipMemcpyDeviceToDevice);
    -  EXPECT_EQ(copies_[0].stream, kStream);
    -  EXPECT_EQ(copies_[0].launchesBefore, 0u);
    -}
    -
    -TEST_F(DdaAlltoallIpcMicrotest, Launch_StagingCopyErrorIsReportedWithoutLaunching) {
    -  g_hipMemcpyAsync = [](void*, const void*, size_t, hipMemcpyKind, hipStream_t) { return hipErrorInvalidValue; };
    -  EXPECT_EQ(Run(kSingleBlockFloats), ncclUnhandledCudaError);
    -  EXPECT_TRUE(g_ddaLaunches.empty());
    +// The multi-block grid also stages inside the kernel: no pre-kernel copy at any size up to the scratch cap.
    +TEST_F(DdaAlltoallIpcMicrotest, Launch_MultiBlockPayloadAlsoStagesInsideTheKernel) {
    +  for (size_t count : {kSingleBlockFloats, kSingleBlockFloats * 8, size_t{1} << 17}) {

    The first iteration uses 2048 FP32 elements, or exactly 8192 bytes per peer. getGridAndBlockDims() still produces one 512-thread block at that size, so the EXPECT_GT(grid.x, 1u) below always fails (the existing grid test also explicitly expects one block for count 2048). Start with kSingleBlockFloats + 4 to exercise a genuinely multi-block payload while preserving 16-byte alignment.

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 17, 2026 18:55 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟡 Changes recommended

    The all-to-all IPC test starts with 2048 FP32 elements, which produces only one block and guarantees failure of its assertion that grid.x exceeds 1.

    <details open>
    <summary><strong>1 open issue</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture> Use a payload larger than one block in the multi-block test · New

  • </details>

    <details>
    <summary><strong>What changed in this PR</strong></summary>

    This PR moves input staging into the kernel for all grid sizes in RCCL’s single-node, eight-rank DDA IPC AlltoAll path, removing the pre-kernel copy overhead. The fabric and multi-node paths remain unchanged.

    Changes:

  • Aligns staging ownership with each block’s peer reads so the existing per-block barrier covers multi-block launches.

  • Simplifies the IPC launcher to use one kernel variant without a pre-kernel copy.

  • Updates launcher tests and removes obsolete staging-selection tests and helpers.
  • | File | Description |
    | ---- | ----------- |
    | projects/​rccl/​test/​host/​algorithms/​dda/​alltoall/​dda-alltoall-ipc-test.cc | Updates single- and multi-block launcher checks for in-kernel staging. |
    | projects/​rccl/​test/​DdaAlltoAllThresholdTests.cpp | Removes tests for the old staging split. |
    | projects/​rccl/​test/​common/​DdaAlltoAllTestHelpers.hpp | Removes obsolete staging-selection helpers and constants. |
    | projects/​rccl/​src/​algorithms/​dda/​device/​CollCommon.h | Updates the grid-sizing helper’s comment. |
    | projects/​rccl/​src/​algorithms/​dda/​alltoall/​dda_alltoall_ipc.cu | Removes the pre-kernel copy and conditional kernel selection. |
    | projects/​rccl/​src/​algorithms/​dda/​alltoall/​alltoall_dda.h | Partitions in-kernel staging to match each block’s read ownership. |
    </details>

    <sub>Review effort: Balanced</sub>

    srirajpaul srirajpaul approved these changes on Nov 17, 2026 18:55 UTC
    Approved Reviewer

    looks good. the same can be done for fabric pull kernel also, although no one is using it now.

    nusislam nusislam commented on code on Nov 17, 2026 19:21 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda.h:1
    @@ -33,16 +33,19 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    -  if constexpr (kStagingCopyInKernel) {
    -    // Small messages: fuse sendbuff -> scratch copy into the kernel to avoid
    -    // cudaMemcpyAsync launch overhead on ROCm.
    -    const size_t copyCount = count * NRANKS;
    -    copyFromSrcToDest<T>(sendbuff, ipcbuffs[selfRank], idxStart, copyCount, idxStride);
    -    barrier.syncOnSameBlockIdx<true /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    -  } else {
    -    // Large messages: host enqueues cudaMemcpyAsync into ddaScratch before launch.
    -    barrier.syncOnSameBlockIdx<false /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    +#pragma unroll NRANKS
    +    for (int r = 0; r < NRANKS; ++r) {

    What is the performance impact of doing this? using hipMemcpy() is faster for larger messages.

    amd-argus[bot] amd-argus[bot] commented on Nov 17, 2026 20:10 UTC
    Bot

    @cppccppccppc @sunguobao PTAL

    github-actions[bot] github-actions[bot] commented on Nov 17, 2026 22:33 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16033-oci-rccl-pr-smoke

    View this job on CoCo

    Builds

    All 20 components built.

    Failures

    No failing tests in this run.

    15 tests skipped.

    Performance regressions

    pr-16033_rccl-perf_rocm-10.1-ga vs rocm-10.1-ga_rccl-develop-perf

    Readings: regressed 12, improved 60, flat 1998.

    | Verdict | Metric | Cell | Why | Baseline | Variant | Change |
    | :-------- | :----- | :--------------------------------------------------------------------------------------------------- | :------------- | ---------: | ---------: | -----: |
    | regressed | busbw | reduce_scatter_perf nodes=2 datatype=float size_bytes=2097152 reduce_op=sum root=-1 placement=ip | readings-agree | 22.96 GB/s | 21.04 GB/s | -8.4% |
    | regressed | time | reduce_scatter_perf nodes=2 datatype=float size_bytes=2097152 reduce_op=sum root=-1 placement=ip | readings-agree | 85.63 us | 93.43 us | -8.3% |
    | regressed | algbw | reduce_scatter_perf nodes=2 datatype=float size_bytes=2097152 reduce_op=sum root=-1 placement=ip | readings-agree | 24.49 GB/s | 22.45 GB/s | -8.3% |
    | regressed | busbw | reduce_scatter_perf nodes=2 datatype=bfloat16 size_bytes=2097152 reduce_op=sum root=-1 placement=ip | readings-agree | 22.46 GB/s | 20.62 GB/s | -8.2% |
    | regressed | algbw | reduce_scatter_perf nodes=2 datatype=bfloat16 size_bytes=2097152 reduce_op=sum root=-1 placement=ip | readings-agree | 23.95 GB/s | 21.99 GB/s | -8.2% |
    | regressed | time | reduce_scatter_perf nodes=2 datatype=bfloat16 size_bytes=2097152 reduce_op=sum root=-1 placement=ip | readings-agree | 87.55 us | 95.35 us | -8.2% |
    | regressed | algbw | reduce_scatter_perf nodes=2 datatype=bfloat16 size_bytes=2097152 reduce_op=sum root=-1 placement=oop | readings-agree | 23.76 GB/s | 21.99 GB/s | -7.4% |
    | regressed | time | reduce_scatter_perf nodes=2 datatype=bfloat16 size_bytes=2097152 reduce_op=sum root=-1 placement=oop | readings-agree | 88.28 us | 95.35 us | -7.4% |
    | regressed | busbw | reduce_scatter_perf nodes=2 datatype=bfloat16 size_bytes=2097152 reduce_op=sum root=-1 placement=oop | readings-agree | 22.27 GB/s | 20.62 GB/s | -7.4% |
    | regressed | algbw | reduce_scatter_perf nodes=2 datatype=float size_bytes=2097152 reduce_op=sum root=-1 placement=oop | readings-agree | 23.9 GB/s | 22.47 GB/s | -6.0% |
    | regressed | time | reduce_scatter_perf nodes=2 datatype=float size_bytes=2097152 reduce_op=sum root=-1 placement=oop | readings-agree | 87.76 us | 93.33 us | -6.0% |
    | regressed | busbw | reduce_scatter_perf nodes=2 datatype=float size_bytes=2097152 reduce_op=sum root=-1 placement=oop | readings-agree | 22.4 GB/s | 21.07 GB/s | -5.9% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=ip | readings-agree | 16.43 GB/s | 22.82 GB/s | +38.9% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=ip | readings-agree | 15.95 us | 11.49 us | +38.8% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=ip | readings-agree | 14.38 GB/s | 19.96 GB/s | +38.8% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=oop | readings-agree | 16.43 GB/s | 22.8 GB/s | +38.8% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=oop | readings-agree | 14.38 GB/s | 19.95 GB/s | +38.7% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=oop | readings-agree | 15.95 us | 11.5 us | +38.7% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=ip | readings-agree | 31.73 GB/s | 43.4 GB/s | +36.8% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=ip | readings-agree | 16.52 us | 12.08 us | +36.8% |

    52 more not shown.

    github-actions[bot] github-actions[bot] commented on Nov 17, 2026 22:33 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16033-ruby64-rccl-pr-smoke

    View this job on CoCo

    Builds

    All 20 components built.

    Failures

    No failing tests in this run.

    15 tests skipped.

    Performance regressions

    pr-16033_rccl-perf_rocm-10.1-ga vs rocm-10.1-ga_rccl-develop-perf

    Readings: improved 66, flat 2004.

    Fails the run: 0 regressed point(s) past 8%, each confirmed by an adjacent size.

    | Verdict | Metric | Cell | Why | Baseline | Variant | Change |
    | :------- | :----- | :-------------------------------------------------------------------------------------------------- | :------------- | ---------: | ---------: | -----: |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=ip | readings-agree | 16.69 us | 11.48 us | +45.4% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=ip | readings-agree | 27.48 GB/s | 39.95 GB/s | +45.4% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=ip | readings-agree | 31.41 GB/s | 45.66 GB/s | +45.4% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=oop | readings-agree | 16.87 us | 11.82 us | +42.7% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=oop | readings-agree | 31.08 GB/s | 44.35 GB/s | +42.7% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall placement=oop | readings-agree | 27.2 GB/s | 38.81 GB/s | +42.7% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=ip | readings-agree | 14.34 GB/s | 20.16 GB/s | +40.6% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=ip | readings-agree | 16.39 GB/s | 23.04 GB/s | +40.6% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=ip | readings-agree | 15.99 us | 11.38 us | +40.5% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=8192 vector_count_pattern=alltoall placement=oop | readings-agree | 9.13 us | 6.59 us | +38.5% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=oop | readings-agree | 14.21 GB/s | 19.65 GB/s | +38.3% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=oop | readings-agree | 16.24 GB/s | 22.45 GB/s | +38.2% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall placement=oop | readings-agree | 16.14 us | 11.68 us | +38.2% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=8192 vector_count_pattern=alltoall placement=oop | readings-agree | 0.79 GB/s | 1.09 GB/s | +38.0% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=8192 vector_count_pattern=alltoall placement=oop | readings-agree | 0.9 GB/s | 1.24 GB/s | +37.8% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=1048576 vector_count_pattern=alltoall placement=ip | readings-agree | 53.71 GB/s | 73.19 GB/s | +36.3% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=1048576 vector_count_pattern=alltoall placement=ip | readings-agree | 61.38 GB/s | 83.64 GB/s | +36.3% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=1048576 vector_count_pattern=alltoall placement=ip | readings-agree | 17.08 us | 12.54 us | +36.2% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=1048576 vector_count_pattern=alltoall placement=oop | readings-agree | 17.12 us | 12.72 us | +34.6% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=1048576 vector_count_pattern=alltoall placement=oop | readings-agree | 53.6 GB/s | 72.11 GB/s | +34.5% |

    46 more not shown.

    amd-argus[bot] amd-argus[bot] commented on code on Nov 18, 2026 00:34 UTC
    Code Review
    projects/rccl/test/host/algorithms/dda/alltoall/dda-alltoall-ipc-test.cc:1
    @@ -153,28 +152,21 @@ TEST_F(DdaAlltoallIpcMicrotest, Launch_WholeSendBufferMayFillScratchExactly) {
     TEST_F(DdaAlltoallIpcMicrotest, Launch_SingleBlockPayloadStagesInsideTheKernel) {
       ASSERT_EQ(Run(kSingleBlockFloats - 4), ncclSuccess);
       ASSERT_EQ(g_ddaLaunches.size(), 1u);
    -  EXPECT_EQ(g_ddaLaunches[0].kernel, Kernel<true>());
    +  EXPECT_EQ(g_ddaLaunches[0].kernel, Kernel());
       EXPECT_EQ(g_ddaLaunches[0].grid.x, 1u);
       EXPECT_TRUE(copies_.empty());
     }
     
    -TEST_F(DdaAlltoallIpcMicrotest, Launch_LargerPayloadIsStagedIntoScratchBeforeTheKernel) {
    -  ASSERT_EQ(Run(kSingleBlockFloats), ncclSuccess);
    -  ASSERT_EQ(g_ddaLaunches.size(), 1u);
    -  EXPECT_EQ(g_ddaLaunches[0].kernel, Kernel<false>());
    -  ASSERT_EQ(copies_.size(), 1u);
    -  EXPECT_EQ(copies_[0].dst, comm().ddaScratch);
    -  EXPECT_EQ(copies_[0].src, kSendbuff);
    -  EXPECT_EQ(copies_[0].bytes, 8 * kSingleBlockFloats * 4);
    -  EXPECT_EQ(copies_[0].kind, hipMemcpyDeviceToDevice);
    -  EXPECT_EQ(copies_[0].stream, kStream);
    -  EXPECT_EQ(copies_[0].launchesBefore, 0u);
    -}
    -
    -TEST_F(DdaAlltoallIpcMicrotest, Launch_StagingCopyErrorIsReportedWithoutLaunching) {
    -  g_hipMemcpyAsync = [](void*, const void*, size_t, hipMemcpyKind, hipStream_t) { return hipErrorInvalidValue; };
    -  EXPECT_EQ(Run(kSingleBlockFloats), ncclUnhandledCudaError);
    -  EXPECT_TRUE(g_ddaLaunches.empty());
    +// The multi-block grid also stages inside the kernel: no pre-kernel copy at any size up to the scratch cap.
    +TEST_F(DdaAlltoallIpcMicrotest, Launch_MultiBlockPayloadAlsoStagesInsideTheKernel) {

    Medium

    This test checks the launch but not the data. No MPI test drives ddaAllToAllIpc past one block: AllToAllTests.cpp:24 uses 1024 per peer (one block) and 1048576 (above the 4 MiB cap), and DdaAlltoAllInPlaceMPI is fabric only. That leaves the new block-partitioned staging without a test. Could we add a gfx942/gfx950 MPI check at, for example, 64 KiB and 512 KiB per peer, in place and out of place, like DdaFabricSimple.AllToAllPull?

    amd-argus[bot] amd-argus[bot] commented on code on Nov 18, 2026 00:34 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda.h:1
    @@ -33,16 +33,19 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    -  if constexpr (kStagingCopyInKernel) {
    -    // Small messages: fuse sendbuff -> scratch copy into the kernel to avoid
    -    // cudaMemcpyAsync launch overhead on ROCm.
    -    const size_t copyCount = count * NRANKS;
    -    copyFromSrcToDest<T>(sendbuff, ipcbuffs[selfRank], idxStart, copyCount, idxStride);
    -    barrier.syncOnSameBlockIdx<true /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    -  } else {
    -    // Large messages: host enqueues cudaMemcpyAsync into ddaScratch before launch.
    -    barrier.syncOnSameBlockIdx<false /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // barrier publishes them for any grid size.

    Low

    This comment narrates the removed memcpy, and alltoall_dda_fabric.h:44-47 repeats it. dda_alltoall_fabric.cu:330 and dda_alltoall_ipc.cu:65 add similar history notes. Could we keep one line here and in the fabric kernel?

      // Block b stages the idx set block b on every peer reads, so the per-block-index barrier publishes it.
    

    amd-argus[bot] amd-argus[bot] commented on Nov 18, 2026 00:34 UTC
    Reviewer

    <!-- argus:v1 pr=16033 sha=73ba4b7b78d8 mode=review -->

    ARGUS

    Findings

    <details>
    <summary>3 more finding(s), not posted inline</summary>

  • projects/rccl/src/algorithms/dda/alltoall/alltoall_dda.h:47 (Low) Hand-written per-rank staging loop duplicates copyFromSrcToDest; reuse it per rank as reduce_scatter_dda.h:34-38 does

  • projects/rccl/src/algorithms/dda/alltoall/alltoall_dda_fabric.h:55 (Low) Fabric pull staging loop duplicates copyFromSrcToDest; reuse it per rank

  • projects/rccl/src/algorithms/dda/alltoall/alltoall_dda_fabric.h:49 (Low) In-place fabric pull (RCCL_DDA_A2A_PUSH=0) has no data test; AllToAllInPlace takes the push kernel
  • </details>

    Bottom line: Worth settling before approval: no end-to-end test checks ddaAllToAllIpc output at a multi-block grid, which is exactly where the new block-partitioned staging matters.

    <sub>Comment <code>@argus review</code> to re-run, or <code>@argus re-review</code> after pushing.</sub>

    atulkulk atulkulk commented on Nov 18, 2026 21:14 UTC
    Contributor

    As I see in the Test Result table, why do we see a perf drop from 8K - 4M?

    alex-breslow-amd alex-breslow-amd commented on code on Nov 19, 2026 14:21 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda_fabric.h:1
    @@ -43,6 +41,20 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // release-acquire barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    +#pragma unroll kUnroll
    +    for (int r = 0; r < nRanksEff; ++r) {
    +      const size_t i = idx + r * idxEnd;
    +      *reinterpret_cast<uint4*>(&myScratch[i]) = reinterpret_cast<const uint4*>(&sendbuff[i])[0];

    This is likely going to produce a flat load instruction to be emitted for the load on sendbuff. Consider using the types that allow casting to the global address space (address_space(1)) found in rccl_ptr.h.

    Worth a check anyway.

    alex-breslow-amd alex-breslow-amd commented on code on Nov 19, 2026 14:23 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda.h:1
    @@ -33,16 +33,19 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    -  if constexpr (kStagingCopyInKernel) {
    -    // Small messages: fuse sendbuff -> scratch copy into the kernel to avoid
    -    // cudaMemcpyAsync launch overhead on ROCm.
    -    const size_t copyCount = count * NRANKS;
    -    copyFromSrcToDest<T>(sendbuff, ipcbuffs[selfRank], idxStart, copyCount, idxStride);
    -    barrier.syncOnSameBlockIdx<true /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    -  } else {
    -    // Large messages: host enqueues cudaMemcpyAsync into ddaScratch before launch.
    -    barrier.syncOnSameBlockIdx<false /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    +#pragma unroll NRANKS
    +    for (int r = 0; r < NRANKS; ++r) {
    +      const size_t i = idx + r * idxEnd;
    +      *reinterpret_cast<uint4*>(&myScratch[i]) = reinterpret_cast<const uint4*>(&sendbuff[i])[0];

    See comment below on global versus flat instructions

    pvallem pvallem commented on code on Nov 26, 2026 05:47 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda.h:1
    @@ -33,16 +33,19 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    -  if constexpr (kStagingCopyInKernel) {
    -    // Small messages: fuse sendbuff -> scratch copy into the kernel to avoid
    -    // cudaMemcpyAsync launch overhead on ROCm.
    -    const size_t copyCount = count * NRANKS;
    -    copyFromSrcToDest<T>(sendbuff, ipcbuffs[selfRank], idxStart, copyCount, idxStride);
    -    barrier.syncOnSameBlockIdx<true /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    -  } else {
    -    // Large messages: host enqueues cudaMemcpyAsync into ddaScratch before launch.
    -    barrier.syncOnSameBlockIdx<false /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    +#pragma unroll NRANKS
    +    for (int r = 0; r < NRANKS; ++r) {
    +      const size_t i = idx + r * idxEnd;
    +      *reinterpret_cast<uint4*>(&myScratch[i]) = reinterpret_cast<const uint4*>(&sendbuff[i])[0];
    +    }
       }

    With a single-block grid at 1K-2K, only count/16 lanes stage (8 or 16 of the 64), each doing 8 stores, which matches
    the 1K-2K cost noted in the description. Since one block both stages and reads every slot there, could we keep the
    flat copy for small single-block grids? We tried this on gfx942 and gfx950 and it brought 1K-2K back to develop's
    time while keeping the gains from 4K up.

      T* const myScratch = ipcbuffs[selfRank];
      if (gridDim.x == 1 && 2 * idxEnd < idxStride) {
        // One block stages and reads every slot, so the flat copy keeps all its threads busy.
        copyFromSrcToDest<T>(sendbuff, myScratch, idxStart, idxEnd * NRANKS, idxStride);
      } else {
        for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    #pragma unroll NRANKS
          for (int r = 0; r < NRANKS; ++r) {
            const size_t i = idx + r * idxEnd;
            *reinterpret_cast<uint4*>(&myScratch[i]) = reinterpret_cast<const uint4*>(&sendbuff[i])[0];
          }
        }
      }
    

    pvallem pvallem commented on code on Nov 26, 2026 05:47 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda_fabric.h:1
    @@ -43,6 +41,20 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // release-acquire barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    +#pragma unroll kUnroll
    +    for (int r = 0; r < nRanksEff; ++r) {
    +      const size_t i = idx + r * idxEnd;
    +      *reinterpret_cast<uint4*>(&myScratch[i]) = reinterpret_cast<const uint4*>(&sendbuff[i])[0];

    With RCCL_DDA_A2A_PUSH=0 the pull kernel now does 16-byte loads from sendbuff, but ncclAllToAllDdaFabricEligible
    only checks bytes % 16, not pointer alignment. Before, the host memcpy handled any alignment. Gating the tier on
    alignment would break the rank-uniform tier choice the in-place MPI test relies on, so a branch inside the kernel
    on (sendbuff | recvbuff) & 15 might be safer. Please check.

    pvallem pvallem commented on code on Nov 26, 2026 05:47 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda_fabric.h:1
    @@ -43,6 +41,20 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // release-acquire barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {

    The staging loop and the read loop are now the same in ddaAllToAllIpc and ddaAllToAllFabric. Could we pull them into
    a shared helper in CollCommon.h so the two kernels don't drift?

    pvallem pvallem commented on code on Nov 26, 2026 05:47 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda.h:1
    @@ -33,16 +33,19 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    -  if constexpr (kStagingCopyInKernel) {
    -    // Small messages: fuse sendbuff -> scratch copy into the kernel to avoid
    -    // cudaMemcpyAsync launch overhead on ROCm.
    -    const size_t copyCount = count * NRANKS;
    -    copyFromSrcToDest<T>(sendbuff, ipcbuffs[selfRank], idxStart, copyCount, idxStride);
    -    barrier.syncOnSameBlockIdx<true /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    -  } else {
    -    // Large messages: host enqueues cudaMemcpyAsync into ddaScratch before launch.
    -    barrier.syncOnSameBlockIdx<false /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    +#pragma unroll NRANKS
    +    for (int r = 0; r < NRANKS; ++r) {

    Up to the default 4 MiB AlltoAll cap we saw the in-kernel copy at least as fast as the memcpy on gfx942 and gfx950,
    since it saves the extra launch. Above that, with at most 24 blocks, it falls behind, so it only matters if
    RCCL_DDA_THRESHOLD is raised. ReduceScatter keeps a host copy above 1 MiB per shard for the same reason
    (kDdaRsIpcKernelCopyMaxBytes); a similar cutoff here would cover the raised-threshold case.

    pvallem pvallem commented on Nov 26, 2026 05:47 UTC
    Contributor

    A pre-existing issue, not from this PR: IPC eligibility checks each rank's own pointer alignment (ddaUserBuffers16ByteAligned at dda_alltoall_ipc.cu:109, and the same check in the AllReduce, AllGather and ReduceScatter IPC paths). If one rank passes a 16-byte-aligned buffer and another does not, the ranks pick different kernels and the DDA barrier never pairs. DdaAlltoAllInPlaceMPITests.cpp:11-14 documents this hazard for the gfx1250 tiers; happy to file it separately.

    amd-argus[bot] amd-argus[bot] commented on code on Dec 04, 2026 15:51 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/alltoall_dda_fabric.h:1
    @@ -43,6 +41,20 @@ __launch_bounds__(512)
       const auto idxEnd = countPerRank;
       const auto idxStride = gridDim.x * blockDim.x * countPerThread;
     
    +  // Stage sendbuff into this rank's scratch inside the kernel (no pre-kernel cudaMemcpyAsync).
    +  // Each block copies exactly the elements that the same block index on every peer reads in the
    +  // loop below (idx + r * count for idx in this block's stride set), so the per-block-index
    +  // release-acquire barrier publishes them for any grid size.
    +  T* const myScratch = ipcbuffs[selfRank];
    +  for (size_t idx = idxStart; idx < idxEnd; idx += idxStride) {
    +#pragma unroll kUnroll
    +    for (int r = 0; r < nRanksEff; ++r) {
    +      const size_t i = idx + r * idxEnd;
    +      *reinterpret_cast<uint4*>(&myScratch[i]) = reinterpret_cast<const uint4*>(&sendbuff[i])[0];
    +    }
    +  }
    +  barrier.syncOnSameBlockIdx<true /* hasPreviousMemAccess */, true /* hasSubsequentMemAccess */>();

    Medium

    Medium

    DdaFabricSimple.AllToAllPull (DdaFabricSimpleMPITests.cpp:607) is the only data check of this staging and barrier. It runs only with RCCL_DDA_A2A_PUSH=0 on gfx1250. runAllToAll (DdaFabricSimpleMPITests.cpp:417) sends one fixed payload 10 times and checks recvbuff once, after the last call. By then scratch already holds that payload from the earlier calls, so a late publish at this barrier still reads matching data. Could we vary the fill per iteration and check each one, as runBarrierStressAllToAll (DdaFabricSimpleMPITests.cpp:821-850) does?

    amd-argus[bot] amd-argus[bot] commented on code on Dec 04, 2026 15:51 UTC
    Code Review
    projects/rccl/src/algorithms/dda/alltoall/dda_alltoall_fabric.cu:1
    @@ -327,27 +327,23 @@ static ncclResult_t ncclAllToAllDdaFabricTyped(const void* sendbuff, void* recvb
       INFO(NCCL_COLL, "DDA fabric AllToAll: launching kernel: nRanks=%d count=%zu grid=%u block=%u%s", nRanks, count,
            grid.x, block.x, unroll);
     
    -  // Stage sendbuff into this rank's scratch before the peer exchange. A single
    -  // host-launched cudaMemcpyAsync avoids the per-block in-kernel copy race on
    -  // the fabric path.
    -  CUDACHECK(cudaMemcpyAsync(comm->ddaScratch, sendbuff, totalBytes, cudaMemcpyDeviceToDevice, stream));
    -
    +  // The kernel stages sendbuff into scratch itself at every grid size (see alltoall_dda_fabric.h).

    Medium

    Medium

    With RCCL_DDA_A2A_PUSH=0 on gfx1250, ddaAllToAllFabric is selected only in the VMM tier. That tier starts above the 16 MiB AlltoAll LL128 ceiling and runs up to 256 MiB total (rccl_arch_thresholds.cc:53/66, DPX :336/:350; rccl_wrap.cc:3029). The in-kernel staging now covers that whole band on at most ddaFabricMaxBlocks blocks, and the 1K-4M gfx942 numbers do not reach it. Could we measure 16-256 MiB with PUSH=0, or keep the host copy above a cutoff like kDdaRsIpcKernelCopyMaxBytes (CollCommon.h:243)? Please check.

    amd-argus[bot] amd-argus[bot] commented on Dec 04, 2026 15:51 UTC
    Reviewer

    <!-- argus:v1 pr=16033 sha=406317b0ea52 mode=re-review -->

    ARGUS

    Impact

    <details>
    <summary>Reaches gfx942, gfx950, gfx1250; the PR targets gfx942, gfx950, gfx1250; 5 test(s) to run, 4 heatmap cell(s) to measure</summary>

    Every DDA IPC AlltoAll on gfx942 and gfx950 (single node, 8 ranks, fp32/fp16/bf16, in-place and out-of-place, up to the 4 MiB AlltoAll cap, or higher with RCCL_DDA_THRESHOLD) now stages sendbuff inside the kernel. Before, a host cudaMemcpyAsync did this above 8 KiB per peer. On gfx1250 the fabric VMM pull kernel changes the same way, but only with RCCL_DDA_A2A_PUSH=0, at 16-256 MiB. Measured on gfx942 only, at 1K-8M. gfx950 and gfx1250 are not measured. Reaches gfx942, gfx950, gfx1250; the PR targets gfx942, gfx950, gfx1250.

    Tests that exercise this change

  • rccl-UnitTestsMPI standard_env_dda_a2a_pull, DdaFabricSimple.AllToAllPull: forces RCCL_DDA_A2A_PUSH=0, the only route to the changed fabric pull kernel (projects/rccl/test/test_categories_mpi.yaml)

  • rccl-UnitTestsMPI standard, DdaAlltoAllInPlaceMPI.: in-place DDA AlltoAll, where the staging now reads sendbuff and writes the aliased recvbuff in one kernel (projects/rccl/test/test_categories_mpi.yaml)

  • rccl-UnitTests quick, AlltoAll.OutOfPlace: 8-GPU out-of-place AlltoAll goes through the IPC kernel on gfx942/gfx950 (projects/rccl/test/test_categories.yaml)

  • rccl-UnitTestsFixturesDebug quick, DdaAlltoAllThresholdTest.: the suite this PR trims; checks the DDA entry decision is unchanged (projects/rccl/test/test_categories_fixtures_debug.yaml)

  • rccl-UnitTestsHostAll quick, *: runs the updated IPC and fabric launcher microtests (projects/rccl/test/test_categories_host_all.yaml)
  • Heatmap cells to measure, baseline against this PR, interleaved A/B

  • gfx942 alltoall any, 1 node(s), 1 KiB to 4 MiB: IPC path stages in the kernel at every grid size. The author measured this band; 1K-2K is slower

  • gfx950 alltoall any, 1 node(s), 1 KiB to 4 MiB (not measured in the heatmap): same IPC kernel change under the gfx950 4 MiB cap, not measured

  • gfx942 alltoall any, 1 node(s), 8 MiB to 64 MiB: in-kernel staging with no cutoff, reached only with RCCL_DDA_THRESHOLD raised

  • gfx1250 alltoall any, 1 node(s), 16 MiB to 256 MiB (not measured in the heatmap): fabric VMM pull kernel (RCCL_DDA_A2A_PUSH=0) now stages in the kernel, not measured
  • </details>

    Bottom line: Worth settling before approval: Launch_MultiBlockPayloadAlsoStagesInsideTheKernel starts at 8 KiB per peer, which still launches one block, so its grid.x &gt; 1 check fails. The multi-block IPC staging also still has no data test.

    <sub>Comment <code>@argus review</code> to re-run, or <code>@argus re-review</code> after pushing.</sub>

    github-actions[bot] github-actions[bot] commented on Dec 04, 2026 16:18 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16033-oci-rccl-pr-smoke

    View this job on CoCo

    Builds

    All 15 components built.

    Failures

    No failing tests in this run.

    12 tests skipped.

    Performance regressions

    Thresholds. A reading is marked regressed when its performance drops more than 5% and the change is significant. The run fails when a point drops more than 10% and an adjacent size does too. Performance is bandwidth, or the inverse of latency.

    pr-16033_rccl-perf_rocm-10.2-latest vs rocm-10.2-latest_rccl-develop-perf

    Readings: improved 60, flat 2010.

    Fails the run: 0 regressed point(s) past 10%, each confirmed by an adjacent size.

    One row per point, showing the reading that moved most.

    | Verdict | Cell | Reading | Why | Baseline | Variant | Change |
    | :------- | :------------------------------------------------------------------------------------ | :---------- | :------------- | ---------: | ---------: | -----: |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall | busbw (ip) | readings-agree | 17.43 GB/s | 28.79 GB/s | +65.2% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall | busbw (ip) | readings-agree | 34.7 GB/s | 53 GB/s | +52.7% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=131072 vector_count_pattern=alltoall | busbw (ip) | readings-agree | 9.56 GB/s | 14.49 GB/s | +51.6% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=65536 vector_count_pattern=alltoall | busbw (oop) | readings-agree | 5.07 GB/s | 7.36 GB/s | +45.2% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=8192 vector_count_pattern=alltoall | algbw (oop) | readings-agree | 1.04 GB/s | 1.49 GB/s | +43.3% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=1048576 vector_count_pattern=alltoall | algbw (ip) | readings-agree | 68.35 GB/s | 93.23 GB/s | +36.4% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=16384 vector_count_pattern=alltoall | busbw (oop) | readings-agree | 1.87 GB/s | 2.49 GB/s | +33.2% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=32768 vector_count_pattern=alltoall | time (oop) | readings-agree | 8.22 us | 6.29 us | +30.7% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=2097152 vector_count_pattern=alltoall | time (oop) | readings-agree | 19.93 us | 15.46 us | +28.9% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=4096 vector_count_pattern=alltoall | time (oop) | readings-agree | 6.07 us | 5.4 us | +12.4% |

    github-actions[bot] github-actions[bot] commented on Dec 04, 2026 16:18 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16033-ruby64-rccl-pr-smoke

    View this job on CoCo

    Builds

    All 15 components built.

    Failures

    No failing tests in this run.

    12 tests skipped.

    Performance regressions

    Thresholds. A reading is marked regressed when its performance drops more than 5% and the change is significant. The run fails when a point drops more than 8% and an adjacent size does too. Performance is bandwidth, or the inverse of latency.

    pr-16033_rccl-perf_rocm-10.2-latest vs rocm-10.2-latest_rccl-develop-perf

    Readings: improved 60, flat 2010.

    Fails the run: 0 regressed point(s) past 8%, each confirmed by an adjacent size.

    One row per point, showing the reading that moved most.

    | Verdict | Cell | Reading | Why | Baseline | Variant | Change |
    | :------- | :------------------------------------------------------------------------------------ | :---------- | :------------- | ---------: | ---------: | -----: |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=524288 vector_count_pattern=alltoall | busbw (ip) | readings-agree | 31.01 GB/s | 46.82 GB/s | +51.0% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=262144 vector_count_pattern=alltoall | time (ip) | readings-agree | 14.45 us | 9.61 us | +50.4% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=131072 vector_count_pattern=alltoall | time (ip) | readings-agree | 13.75 us | 9.5 us | +44.7% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=8192 vector_count_pattern=alltoall | algbw (oop) | readings-agree | 0.86 GB/s | 1.23 GB/s | +43.0% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=1048576 vector_count_pattern=alltoall | time (ip) | readings-agree | 15.39 us | 10.79 us | +42.6% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=65536 vector_count_pattern=alltoall | time (ip) | readings-agree | 13.21 us | 9.57 us | +38.0% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=16384 vector_count_pattern=alltoall | busbw (oop) | readings-agree | 1.51 GB/s | 2.04 GB/s | +35.1% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=32768 vector_count_pattern=alltoall | busbw (oop) | readings-agree | 2.81 GB/s | 3.69 GB/s | +31.3% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=2097152 vector_count_pattern=alltoall | algbw (oop) | readings-agree | 109.4 GB/s | 132.3 GB/s | +21.0% |
    | improved | alltoall_perf nodes=1 datatype=float size_bytes=4096 vector_count_pattern=alltoall | busbw (oop) | readings-agree | 0.46 GB/s | 0.54 GB/s | +17.4% |

    Reviewers
    Assignees
    thananon thananon
    Labels
    risk: low confidence: 90.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 46% (MEDIUM) · Higher = larger blast radius
    46%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 90.9% · Lower = rushed or shallow review
    90.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4.2% · Safe to merge
    4.2%