perf(tensilelite): signal each GemmA2A SDMA queue once, after its last COPY #16613
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 232 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16613"
general
weight: 0.35
yzhang93
JIRA ID : ROCM-27524
Motivation
A
FusedA2A: GemmA2Akernel puts an SDMA ATOMIC behind every COPY on each peer queue, and the receiver's drain waits for its flag slot to reach the number of token tiles. An ATOMIC that is followed by another COPY stalls the SDMA engine for a fixed time regardless of the COPY size, so when the GEMM finishes in about one wave and the packets are small, these ATOMICs make up a large part of the transfer that cannot be hidden behind the GEMM.Technical Details
counter2already elects as the last submitter to a peer now puts two ATOMICs on that queue in one reservation: the peer's flag slot and this rank's outbound counter.Test Plan
On gfx950 with 8 GPUs: the TensileLite gtest and the fused comm tests at world 2, 4 and 8; the hipBLASLt fused single-GPU and
multi_gputests; and before/after timing ofGemmA2Akernels on the TensileLite client.Test Result
All the listed tests pass, including the hipBLASLt multi-process tests that reuse flag channels across launches at world 2 through 8. Shapes whose GEMM runs in about one wave are faster at world 2, 4 and 8; the multi-wave shapes at world 4 and 8 are unchanged.
Submission Checklist