← Back to Pull requests

fix(rccl): net-ib-cast - report recv size under adaptive routing and fix inline QP creation #16227

Merged
Kapil-Shyam-Pawar merged 5 files (137 lines) on Dec 01, 2026 18:22 UTC
View on GitHub
Kapil-Shyam-Pawar Kapil-Shyam-Pawar commented on Nov 19, 2026 17:19 UTC
Author

Motivation

Since #10975 made the NetIbMPI tests actually load net-ib-cast, three nightly tests fail: SendRecvMultipleSizes, LargeTransfer, and InlineSendBoundary

[ RUN      ] NetIbMPITest.SendRecvMultipleSizes
[  FAILED  ] NetIbMPITest.SendRecvMultipleSizes (5213 ms)
[ RUN      ] NetIbMPITest.LargeTransfer
[  FAILED  ] NetIbMPITest.LargeTransfer (30322 ms)
[----------] 2 tests from NetIbMPITest (35535 ms total)

[ RUN      ] NetIbMPITest.InlineSendBoundary
[  FAILED  ] NetIbMPITest.InlineSendBoundary (30403 ms)
[----------] 1 test from NetIbMPITest (30403 ms total)

Technical Details

  • Adaptive routing: a single send now writes its size to the receiver's completion record (the empty trailer reported size 0). Not used when CTS offload is on.

  • Inline: with NCCL_IB_USE_INLINE=1, QPs ask for one CTS entry of inline data instead of eight (bnxt_re rejected eight). Multi-receive CTS writes are never inlined, matching net_ib.

  • AINIC: no change for inline (ionic QPs are created separately), and the adaptive-routing change only applies with CTS offload off.
  • Issue Tracking

    JIRA ID: AICOMRCCL-3697

    Test Plan

  • Broadcom (Thor2): the three failing tests with nightly settings, the ib-cast send/recv tests with and without adaptive routing and inline mode, and the rccl-UnitTestsMicroTransportNetIbCast* host tests.

  • AINIC (MI355X): the same tests with and without the fix (RCCL_CTS_OFFLOAD_ENABLED=0)
  • Test Result

    All three tests pass on Broadcom, along with the other ib-cast MPI tests and all 16 ib-cast host test binaries.
    Three host tests were updated for the new behavior.
    On AINIC, the adaptive-routing tests fail without the fix and pass with it

    [==========] Running 2 tests from 1 test suite.
    [----------] Global test environment set-up.
    [----------] 2 tests from NetIbMPITest
    [ RUN      ] NetIbMPITest.SendRecvMultipleSizes
    [       OK ] NetIbMPITest.SendRecvMultipleSizes (156 ms)
    [ RUN      ] NetIbMPITest.LargeTransfer
    [       OK ] NetIbMPITest.LargeTransfer (55 ms)
    [----------] 2 tests from NetIbMPITest (212 ms total)
    
    [----------] Global test environment tear-down
    [==========] 2 tests from 1 test suite ran. (358 ms total)
    [  PASSED  ] 2 tests.
    
    [==========] Running 1 test from 1 test suite.
    [----------] Global test environment set-up.
    [----------] 1 test from NetIbMPITest
    [ RUN      ] NetIbMPITest.InlineSendBoundary
    [       OK ] NetIbMPITest.InlineSendBoundary (154 ms)
    [----------] 1 test from NetIbMPITest (154 ms total)
    
    [----------] Global test environment tear-down
    [==========] 1 test from 1 test suite ran. (308 ms total)
    [  PASSED  ] 1 test.
    

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
  • Diff: 137 lines (+109 / -28) across 5 files Reviewer: alex-breslow-amd Review duration: 17343m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.38) × (1 − Review Confidence (0.88)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.38 · 137 lines diff across 5 files
    0.38
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.85 · 5 substantive comment(s)
    0.85
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    88%
    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.295
    Real PR Conversation Timeline
    29 items
    therock-pr-bot[bot] therock-pr-bot[bot] commented on Nov 19, 2026 17:19 UTC
    Bot

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

    ✅ All Checks Passed — Ready for Review

    | Check | Status | Details |
    |---|:---:|---|
    | 📝 PR Description | ✅ Pass | — |
    | ⛔ 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/transport/net_ib_cast/common_cast.h, projects/rccl/src/transport/net_ib_cast/connect.cc, projects/rccl/src/transport/net_ib_cast/p2p.cc, projects/rccl/test/host/transport/net_ib_cast/net-ib-cast-connect-test.cc, projects/rccl/test/host/transport/net_ib_cast/net-ib-cast-p2p-test.cc; no test file found |
    | 🔎 pre-commit | ✅ Pass | — |
    | 🚫 Draft PR | 🔜 To Be Enabled | — |
    | 🚩 Feature Flag | 🔜 To Be Enabled | — |
    | 📊 Code Coverage | 🔜 To Be Enabled | — |
    | 🤖 therock-pr-bot | ✅ Pass | — |

    🎉 All checks passed! This PR is ready for review.

    📖 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 19, 2026 17:20 UTC
    Bot

    <!-- therock-pr-bot-fix-policies -->
    🎉 All checks passed! This PR is ready for review.

    Copilot Copilot commented on code on Nov 19, 2026 17:23 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -362,7 +367,7 @@ ncclResult_t IbCastMultiSend(struct ncclIbSendComm* comm, int slot, int nqps, in
           }
         }
     
    -    if (nreqs > 1) {
    +    if (nreqs > 1 || arSizeInRecord) {

    The new adaptive-routing path inherits a local/remote device-index mix-up: this block selects the trailer's rkey with remCmplsRecords.rkeys[devIndex], but those keys are populated from remote device metadata (connect.cc:1728-1729). When a QP's devIndex differs from remDevIdx, the data write uses the correct remote key while the new size-record write uses a key from the wrong remote device, causing a remote-access error instead of completing the transfer. Please index the remote record keys with qp->remDevIdx, retaining the local index for the source SGE.

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

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

    🟡 Changes recommended

    The adaptive-routing path indexes the size-record write’s remote key with the local device index rather than qp->remDevIdx, causing remote-access errors when the indices differ.

    <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/high-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/high-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/high-v2-light.png" alt="High severity" width="62" height="18" align="texttop"></picture> Use the remote device index for the size-record rkey · New

  • </details>

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

    This PR fixes RCCL IB-CAST receive-size reporting and inline queue-pair creation, addressing nightly test failures exposed by the plugin-selection fix in #10975.

    Changes:

  • Reports single-send sizes through completion records under adaptive routing when CTS offload is disabled.

  • Limits inline capacity to one CTS entry and disables inline writes for multi-receive CTS messages.

  • Updates host-test expectations and size-reporting documentation.
  • | File | Description |
    | ---- | ----------- |
    | projects/​rccl/​test/​host/​transport/​net_ib_cast/​net-ib-cast-p2p-test.cc | Checks adaptive-routing size records and non-inline multi-receive CTS writes. |
    | projects/​rccl/​test/​host/​transport/​net_ib_cast/​net-ib-cast-connect-test.cc | Expects one-entry inline capacity for generic and mlx5 queue pairs. |
    | projects/​rccl/​src/​transport/​net_ib_cast/​p2p.cc | Updates size-record writes, completion accounting, and CTS inline flags. |
    | projects/​rccl/​src/​transport/​net_ib_cast/​connect.cc | Reduces requested inline capacity for provider compatibility. |
    | projects/​rccl/​src/​transport/​net_ib_cast/​common_cast.h | Clarifies completion-record precedence in size-reporting comments. |
    </details>

    <sub>Review effort: Balanced</sub>

    amd-argus[bot] amd-argus[bot] commented on code on Nov 19, 2026 18:06 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -1310,12 +1313,10 @@ static inline ncclResult_t IbCastCompletionEventProcess(struct ncclIbNetCommBase
                  wc->status, ibvWcOpcodeStr(wc->opcode), wc->opcode, wc->qp_num);
             return ncclInternalError;
           }
    -      if (req->nreqs == 1) {
    -        if (commBase->recvMatchingScheme != BY_ID) {
    -          req->recv.cmplsRecords->sizes[0] += wc->byte_len;
    -        } else if (req->recv.cmplsRecords->sizes[0] == 0) {
    -          req->recv.aggSize += wc->byte_len;
    -        }
    +      // The sender's RDMA Write lands sizes[0] before this completion when it writes the record
    +      // (Adaptive Routing); its byte_len then covers only that write, not the data.
    +      if (req->nreqs == 1 && req->recv.cmplsRecords->sizes[0] == 0) {

    Medium

    No recv test presets sizes[0] for BY_INDEX or BY_ORDER, so reverting this line (or line 1209) to sizes[0] += wc->byte_len still passes Test_RecvByIndexSingleQp and Test_RecvByIndexSplit. Could we add a BY_INDEX recv case that sets cmplsRecords[slot].sizes[0] = 1001, completes with byte_len = sizeof(int), and expects 1001? net-ib-cast-p2p-test.cc:1491 already has that shape for BY_ID.

    amd-argus[bot] amd-argus[bot] commented on code on Nov 19, 2026 18:06 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -234,10 +234,12 @@ ncclResult_t IbCastMultiSend(struct ncclIbSendComm* comm, int slot, int nqps, in
       // For index-based matching scheme, immData layout (BY_INDEX):
       //   bits [31:24] - rxReqIndex: receiver's request slot index (from CTS fifo)
       //   bit  [23]    - WR_IMM_SPLIT_DATA_FLAG: set when sending across >1 QPs
    -  //   bits [22:0]  - unused; receiver always uses wc->byte_len for size
    -  // - nreqs > 1
    -  //      Sizes are written directly to remote completion records array
    +  //   bits [22:0]  - unused; receiver uses wc->byte_len for size unless the record has it
    +  // - nreqs > 1, or one request sent under Adaptive Routing
    +  //      Sizes are written directly to remote completion records array. Under Adaptive Routing the data
    +  //      goes as plain RDMA Writes and the trailing Write with immediate carries no data, so its byte_len is 0.

    Low

    The same Adaptive Routing explanation (the trailing Write with imm carries no data, so byte_len cannot give the size) appears here and again at p2p.cc:1207, p2p.cc:1316, common_cast.h:225 and net-ib-cast-p2p-test.cc:541. Could we keep it here as one line and shorten the others?

      // - nreqs > 1, or one request under Adaptive Routing (its trailing Write with imm has byte_len 0)
      //      Sizes are written directly to remote completion records array
    

    amd-argus[bot] amd-argus[bot] commented on Nov 19, 2026 18:06 UTC
    Reviewer

    <!-- argus:v1 pr=16227 sha=b844428f0c3f mode=review -->

    ARGUS

    Findings

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

  • projects/rccl/src/transport/net_ib_cast/p2p.cc:261 (Low) No test covers the !comm-&gt;useCtsOffload term in arSizeInRecord. The only CTS-offload isend test has ar=0, so deleting the term still passes. Add an AR + useCtsOffload case asserting the trailer keeps num_sge == 0.
  • </details>

    Impact

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

    Host-side net_ib_cast transport only, so every GPU arch is reached. The adaptive-routing size record applies to single-request sends above IbCastArThreshold (8192 B) with AR on and CTS offload off. AR is on by default for InfiniBand link layers (init.cc:619), so default InfiniBand inter-node collectives and sendrecv above 8 KiB on non-AINIC NICs carry a 4-byte record on the trailer write. The receiver keeps the size in aggSize instead of sizes[0] on every matching scheme, and p2p.cc:1056 resolves both. The inline change only applies with NCCL_IB_USE_INLINE=1 on non-ionic QPs: max_inline_data drops to one ncclIbSendFifo entry and multi-receive CTS writes are no longer inlined, matching net_ib. Whether the gfx942 Mellanox nightly links are InfiniBand (AR on) or RoCE is not derivable from the checkout. Reaches gfx942, gfx950, gfx1250; the PR targets gfx950.

    Tests that exercise this change

  • rccl-UnitTestsMPI quick_env_netib_xfer_trace, NetIbMPITest.SimpleSendRecv:NetIbMPITest.SendRecvMultipleSizes:NetIbMPITest.LargeTransfer:NetIbMPITest.SendRecvDifferentMemoryTypes:NetIbMPITest.SendRecvMultipleSizesFusion:NetIbMPITest.MultipleOutstandingSendRecv: single-request and multi-size sends above the 8 KiB AR threshold exercise the new size-record trailer and the aggSize receive path (projects/rccl/test/test_categories_mpi.yaml)

  • rccl-UnitTestsMPI standard_env_netib_inline, NetIbMPITest.InlineSendBoundary: runs with NCCL_IB_USE_INLINE=1, covering the one-entry max_inline_data QP and non-inlined multi-receive CTS (projects/rccl/test/test_categories_mpi.yaml)

  • rccl-UnitTestsMPI standard, NetIbMPITest.: full net-ib MPI suite, including multi-receive and multiple-outstanding paths that read sizes[0] and aggSize (projects/rccl/test/test_categories_mpi.yaml)

  • test_categories_micro_transport.yaml quick, Net: matches the NetIbCast connect and p2p host microtests updated by this PR (projects/rccl/test/test_categories_micro_transport.yaml)
  • Heatmap cells to measure, baseline against this PR, interleaved A/B

  • gfx942 all_reduce float/sum, 2 node(s), 16 KiB to 4 GiB: Mellanox platform not in the test plan; on an InfiniBand link AR defaults on, so every single-request net send above 8 KiB now carries the size-record trailer

  • gfx942 all_gather float/any, 2 node(s), 16 KiB to 4 GiB: same AR trailer change on a ring-style collective over the network, unmeasured platform

  • gfx942 alltoall float/any, 2 node(s), 1 KiB to 4 GiB: multi-receive CTS is no longer inlined when NCCL_IB_USE_INLINE=1; mlx5 QP max_inline_data shrinks to one entry

  • gfx1250 sendrecv float/any, 2 node(s), 16 KiB to 4 GiB: Broadcom path the PR fixes; confirms the size record under AR and the reduced inline QP attribute

  • gfx1250 alltoall float/any, 2 node(s), 1 KiB to 4 GiB: multi-receive CTS writes on bnxt_re with inline enabled now post without IBV_SEND_INLINE

  • gfx950 all_reduce float/sum, 2 node(s), 16 KiB to 4 GiB: targeted arch; AINIC is unchanged with CTS offload on, and the AR record applies only with RCCL_CTS_OFFLOAD_ENABLED=0
  • </details>

    Bottom line: Worth settling before approval: the receiver size change at p2p.cc:1318 (and 1209) has no test that fails when it is reverted.

    <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 Nov 19, 2026 21:00 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-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-16227_rccl-perf_rocm-10.1-ga vs rocm-10.1-ga_rccl-develop-perf

    Readings: flat 2070.

    No confirmed regressions or improvements.

    github-actions[bot] github-actions[bot] commented on Nov 19, 2026 21:00 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-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-16227_rccl-perf_rocm-10.1-ga vs rocm-10.1-ga_rccl-develop-perf

    Readings: flat 2070.

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

    No confirmed regressions or improvements.

    amd-argus[bot] amd-argus[bot] commented on Nov 20, 2026 14:45 UTC
    Reviewer

    <!-- argus:v1 pr=16227 sha=7ab8b297e5d4 mode=re-review -->

    ARGUS

    Impact

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

    Host-side net_ib_cast transport only, so every GPU arch is reached; net_ib_cast is the default net only on AINIC hosts and otherwise needs NCCL_NET=IB-CAST. Single-request sends above 8 KiB with adaptive routing on and CTS offload off (InfiniBand link layer by default, or AINIC with RCCL_CTS_OFFLOAD_ENABLED=0 and NCCL_IB_ADAPTIVE_ROUTING=1) now write a 4-byte size record. The receiver reports a real size, which switches the proxy GDR flush back on for SIMPLE inter-node steps that skipped it before. With NCCL_IB_USE_INLINE=1 on non-ionic NICs (mlx5, bnxt_re), QPs ask for one CTS entry of inline data and multi-receive CTS writes (NCCL_NET_SHARED_COMMS grouping) are no longer inlined. Reaches gfx942, gfx950, gfx1250; the PR targets gfx950.

    Tests that exercise this change

  • rccl-UnitTestsMPI quick_env_netib_xfer_trace, NetIbMPITest.SimpleSendRecv:NetIbMPITest.SendRecvMultipleSizes:NetIbMPITest.LargeTransfer:NetIbMPITest.SendRecvDifferentMemoryTypes:NetIbMPITest.SendRecvMultipleSizesFusion:NetIbMPITest.MultipleOutstandingSendRecv: single-request sends above the 8 KiB AR threshold exercise the size-record trailer and the aggSize/sizes[0] receive path (projects/rccl/test/test_categories_mpi.yaml)

  • rccl-UnitTestsMPI standard_env_netib_inline, NetIbMPITest.InlineSendBoundary: runs with NCCL_IB_USE_INLINE=1, covering the one-entry max_inline_data QP and the non-inlined multi-receive CTS (projects/rccl/test/test_categories_mpi.yaml)

  • rccl-UnitTestsMPI quick, NetIbMPITest.: full net-ib plugin suite, including multi-receive paths whose size record now uses the remote device's rkey (projects/rccl/test/test_categories_mpi.yaml)

  • test_categories_micro_transport.yaml quick, Net: matches the NetIbCast connect and p2p host microtests updated by this PR (projects/rccl/test/test_categories_micro_transport.yaml)
  • Heatmap cells to measure, baseline against this PR, interleaved A/B

  • gfx942 all_reduce float/sum, 2 node(s), 16 KiB to 4 GiB: with NCCL_NET=IB-CAST on an InfiniBand link AR is on, so SIMPLE recv steps over 8 KiB now report a size and run the GDR flush they skipped before

  • gfx942 all_gather float, 2 node(s), 16 KiB to 4 GiB: same flush switched back on, ring-style network collective

  • gfx942 alltoall float, 2 node(s), 1 KiB to 4 GiB: with NCCL_IB_USE_INLINE=1, mlx5 QP max_inline_data shrinks to one entry and multi-receive CTS is no longer inlined

  • gfx950 all_reduce float/sum, 2 node(s), 16 KiB to 4 GiB: targeted arch; AINIC with CTS offload off and AR forced now writes the size record, and the GDR flush runs per step

  • gfx1250 sendrecv float, 2 node(s), 16 KiB to 4 GiB on mi4xx-rccl-scaleup-nightly-dpx (8 GPUs/node), mi4xx-rccl-scaleup-nightly-spx (4 GPUs/node): Broadcom path the PR fixes; size record under AR and the reduced inline QP attribute, not on the measured perf set

  • gfx1250 alltoall float, 2 node(s), 1 KiB to 4 GiB on mi4xx-rccl-scaleup-nightly-dpx (8 GPUs/node), mi4xx-rccl-scaleup-nightly-spx (4 GPUs/node): with inline enabled, multi-receive CTS writes on bnxt_re now post without IBV_SEND_INLINE
  • </details>

    Bottom line: LGTM.

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

    amd-argus[bot] amd-argus[bot] commented on code on Nov 20, 2026 14:45 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -1310,12 +1313,10 @@ static inline ncclResult_t IbCastCompletionEventProcess(struct ncclIbNetCommBase
                  wc->status, ibvWcOpcodeStr(wc->opcode), wc->opcode, wc->qp_num);
             return ncclInternalError;
           }
    -      if (req->nreqs == 1) {
    -        if (commBase->recvMatchingScheme != BY_ID) {
    -          req->recv.cmplsRecords->sizes[0] += wc->byte_len;
    -        } else if (req->recv.cmplsRecords->sizes[0] == 0) {
    -          req->recv.aggSize += wc->byte_len;
    -        }
    +      // The sender's RDMA Write lands sizes[0] before this completion when it writes the record
    +      // (Adaptive Routing); its byte_len then covers only that write, not the data.
    +      if (req->nreqs == 1 && req->recv.cmplsRecords->sizes[0] == 0) {

    Resolved by 7ab8b297e5.

    amd-argus[bot] amd-argus[bot] commented on code on Nov 20, 2026 14:45 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -234,10 +234,12 @@ ncclResult_t IbCastMultiSend(struct ncclIbSendComm* comm, int slot, int nqps, in
       // For index-based matching scheme, immData layout (BY_INDEX):
       //   bits [31:24] - rxReqIndex: receiver's request slot index (from CTS fifo)
       //   bit  [23]    - WR_IMM_SPLIT_DATA_FLAG: set when sending across >1 QPs
    -  //   bits [22:0]  - unused; receiver always uses wc->byte_len for size
    -  // - nreqs > 1
    -  //      Sizes are written directly to remote completion records array
    +  //   bits [22:0]  - unused; receiver uses wc->byte_len for size unless the record has it
    +  // - nreqs > 1, or one request sent under Adaptive Routing
    +  //      Sizes are written directly to remote completion records array. Under Adaptive Routing the data
    +  //      goes as plain RDMA Writes and the trailing Write with immediate carries no data, so its byte_len is 0.

    Resolved by 7ab8b297e5.

    github-actions[bot] github-actions[bot] commented on Nov 20, 2026 15:23 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-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

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

    Readings: improved 12, flat 2058.

    | Verdict | Metric | Cell | Why | Baseline | Variant | Change |
    | :------- | :----- | :----------------------------------------------------------------------------------------------- | :------------- | --------: | --------: | -----: |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=1024 vector_count_pattern=alltoall placement=ip | readings-agree | 0.15 GB/s | 0.17 GB/s | +13.3% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=1024 vector_count_pattern=alltoall placement=oop | readings-agree | 0.15 GB/s | 0.17 GB/s | +13.3% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=2048 vector_count_pattern=alltoall placement=ip | readings-agree | 0.29 GB/s | 0.32 GB/s | +10.3% |
    | improved | busbw | alltoall_perf nodes=1 datatype=float size_bytes=2048 vector_count_pattern=alltoall placement=oop | readings-agree | 0.29 GB/s | 0.32 GB/s | +10.3% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=2048 vector_count_pattern=alltoall placement=oop | readings-agree | 0.33 GB/s | 0.36 GB/s | +9.1% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=2048 vector_count_pattern=alltoall placement=oop | readings-agree | 6.13 us | 5.64 us | +8.7% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=1024 vector_count_pattern=alltoall placement=ip | readings-agree | 5.8 us | 5.37 us | +8.0% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=2048 vector_count_pattern=alltoall placement=ip | readings-agree | 6.1 us | 5.65 us | +8.0% |
    | improved | time | alltoall_perf nodes=1 datatype=float size_bytes=1024 vector_count_pattern=alltoall placement=oop | readings-agree | 5.78 us | 5.38 us | +7.4% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=2048 vector_count_pattern=alltoall placement=ip | readings-agree | 0.34 GB/s | 0.36 GB/s | +5.9% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=1024 vector_count_pattern=alltoall placement=ip | readings-agree | 0.18 GB/s | 0.19 GB/s | +5.6% |
    | improved | algbw | alltoall_perf nodes=1 datatype=float size_bytes=1024 vector_count_pattern=alltoall placement=oop | readings-agree | 0.18 GB/s | 0.19 GB/s | +5.6% |

    github-actions[bot] github-actions[bot] commented on Nov 20, 2026 15:23 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-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

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

    Readings: flat 2070.

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

    No confirmed regressions or improvements.

    alex-breslow-amd alex-breslow-amd approved these changes on Nov 20, 2026 18:51 UTC
    Approved Reviewer

    LGTM. Please get someone from @ddurnov's team to also review.

    Kapil-Shyam-Pawar Kapil-Shyam-Pawar commented on Nov 20, 2026 18:53 UTC
    Author

    LGTM. Please get someone from @ddurnov's team to also review.

    yes I've asked @alexander-sannikov to take a look

    alexander-sannikov alexander-sannikov commented on code on Nov 25, 2026 19:50 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -1199,12 +1203,9 @@ static ncclResult_t IbCastCompletionEventByOrder(struct ncclIbNetCommBase* commB
                  wc->status, ibvWcOpcodeStr(wc->opcode), wc->opcode, wc->qp_num);
             return ncclInternalError;
           }
    -      if (req->nreqs == 1) {

    @Kapil-Shyam-Pawar what is a purpose of this changes? All the rest looks fine, but could you please provide a rationale for this changes in completion handling.

    Kapil-Shyam-Pawar Kapil-Shyam-Pawar commented on code on Nov 25, 2026 20:05 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -1199,12 +1203,9 @@ static ncclResult_t IbCastCompletionEventByOrder(struct ncclIbNetCommBase* commB
                  wc->status, ibvWcOpcodeStr(wc->opcode), wc->opcode, wc->qp_num);
             return ncclInternalError;
           }
    -      if (req->nreqs == 1) {

    Under adaptive routing, the receiver only got an empty completion (byte_len 0), so it reported size 0 and the NetIbMPITest.SendRecvMultipleSizes / LargeTransfer tests failed.

    This fix has the sender write the real size into the completion record, and the receiver uses that record instead of byte_len (otherwise it reports the wrong size)

    alexander-sannikov alexander-sannikov commented on code on Nov 30, 2026 10:07 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -1199,12 +1203,9 @@ static ncclResult_t IbCastCompletionEventByOrder(struct ncclIbNetCommBase* commB
                  wc->status, ibvWcOpcodeStr(wc->opcode), wc->opcode, wc->qp_num);
             return ncclInternalError;
           }
    -      if (req->nreqs == 1) {

    My point is that this change alters logic for non AR path as well.

    Kapil-Shyam-Pawar Kapil-Shyam-Pawar commented on code on Nov 30, 2026 13:03 UTC
    Code Review
    projects/rccl/src/transport/net_ib_cast/p2p.cc:1
    @@ -1199,12 +1203,9 @@ static ncclResult_t IbCastCompletionEventByOrder(struct ncclIbNetCommBase* commB
                  wc->status, ibvWcOpcodeStr(wc->opcode), wc->opcode, wc->qp_num);
             return ncclInternalError;
           }
    -      if (req->nreqs == 1) {

    it does touch the non ar path, but the reported size is unchanged there because no size record is written, so byte_len is still summed, just in aggSize instead of sizes[0]

    github-actions[bot] github-actions[bot] commented on Dec 01, 2026 03:52 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-oci-rccl-pr-build

    View this job on CoCo

    Builds

    All 30 components built.

    Failures

    No failing tests in this run.

    183 tests skipped.

    github-actions[bot] github-actions[bot] commented on Dec 01, 2026 03:52 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-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-16227_rccl-perf_rocm-10.2-latest vs rocm-10.2-latest_rccl-develop-perf

    Readings: flat 2070.

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

    No confirmed regressions or improvements.

    alexander-sannikov alexander-sannikov approved these changes on Dec 01, 2026 14:32 UTC
    Approved Reviewer

    Approved these changes.

    VadimKutovoi VadimKutovoi approved these changes on Dec 01, 2026 14:32 UTC
    Approved Reviewer

    Approved these changes.

    github-actions[bot] github-actions[bot] commented on Dec 01, 2026 15:09 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-oci-rccl-pr-build

    View this job on CoCo

    Builds

    All 30 components built.

    Failures

    No failing tests in this run.

    183 tests skipped.

    github-actions[bot] github-actions[bot] commented on Dec 01, 2026 15:09 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-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-16227_rccl-perf_rocm-10.2-latest vs rocm-10.2-latest_rccl-develop-perf

    Readings: flat 2070.

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

    No confirmed regressions or improvements.

    github-actions[bot] github-actions[bot] commented on Dec 01, 2026 15:09 UTC
    Bot

    <!-- markdownlint-disable MD013 -->

    pr-rocm-systems-16227-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-16227_rccl-perf_rocm-10.2-latest vs rocm-10.2-latest_rccl-develop-perf

    Readings: flat 2070.

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

    No confirmed regressions or improvements.

    systems-assistant[bot] systems-assistant[bot] commented on Dec 03, 2026 07:32 UTC
    Bot

    <!-- therock-bump-breadcrumb -->

    TheRock Submodule Bump Activity


    _Newest first_

  • 2026-12-03 — Included in TheRock via ROCm/TheRock#10436. <!-- event-id: 59faeea685f384317a7a8c6be79bbb17c39c7cca_rocm-systems_False --> <!-- event-time: 2026-12-03T07:29:33+00:00 -->
  • Assignees
    Kapil-Shyam-Pawar Kapil-Shyam-Pawar
    Labels
    risk: low confidence: 88.3% 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: 38.3% (MEDIUM) · Higher = larger blast radius
    38.3%
    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: 88.3% · Lower = rushed or shallow review
    88.3%
    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.5% · Safe to merge
    4.5%