← Back to Pull requests

feat(hipblaslt): fused all-to-all follow-ups from the #15352 review #16409

Closed
unknown closed this pull request without merging on Nov 27, 2026 02:45 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 06:56 UTC
Author

Motivation

Follow-ups from the review of ROCm/rocm-libraries#15352: the fused all-to-all internals were still named for the epilogue although they serve the prologue too, and every fused launch allocated two vectors for tables bounded by the maximum world. The TensileLite client also had no protection against automatic NUMA balancing, whose scans make KFD stop the client's queues on every GPU during fused timing runs.

JIRA ID : ROCM-27524

Technical Details

  • Rename RocblasltFusedEpilogueInfo to RocblasltFusionInfo, rocblaslt_resolve_fused_epilogue to rocblaslt_resolve_fusion, (rocblaslt_)validate_fused_epilogue_dispatch to (rocblaslt_)validate_fusion_dispatch, and the fusion descriptor's stages to epilogue_stages, after the public hipblasLtFusion names (no behavior change).

  • TensileLite's ContractionInputs::fusedA2APeers becomes a FusedA2APeerTable, a std::array of FUSED_A2A_MAX_RANKS peer groups, and tensile_host's buffer table a std::array of HIPBLASLT_DEVICE_COMM_MAX_WORLD entries, so a fused launch no longer allocates.

  • appendFusedSegment no longer checks that it was given one peer group per rank; worldSize alone decides. That check also stopped a fused algo used with a matmul descriptor that has no fusion attached; such a launch now runs with null peer pointers. A caller-held algo that does not match the problem it is launched with is undefined behavior, as for dtype or shape. FusedA2AProblem.SegmentNeedsOnePeerGroupPerRank, which tested only that check, is removed.

  • tensilelite-client gets --numa-bind, on by default with --fused-a2a: before any HIP call or thread is created, the client sets its memory policy to MPOL_LOCAL, which keeps the default placement and takes the process out of automatic NUMA balancing. If the kernel refuses (EPERM under docker's default seccomp), the client warns and keeps the default policy.
  • Test Plan

    No new tests; the existing fused suites cover the refactors. --numa-bind was compared with --numa-bind 0 on a node with automatic NUMA balancing on.

    Test Result

    On MI355X, the TensileLite gtests, the fused_a2a / a2a_gemm_loop comm configs at world 2, 4 and 8, the single-GPU fused suite and multi_gpu* at world 2 to 8 pass. With --numa-bind on, the client takes no NUMA-balancing faults and KFD no longer evicts its queues while it runs; in a container without SYS_NICE it prints the warning and the run passes.

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/GOVERNANCE.md#pull-requests.
  • Diff: 325 lines (+243 / -82) across 4 files Reviewer: yzhang93 Review duration: 9829m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 325 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16409"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 42% (MEDIUM) · Higher = larger blast radius
    42%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.6% · Safe to merge
    16.6%