[release/2.13] Update ROCm Triton to 3.9 and backport Triton block-pointer API gate #3870
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 527 lines diff across 6 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.375
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3870"
general
weight: 0.35
pruthvistony
Human Written Summary
For PyTorch 2.13, this PR updates Triton 3.8 -> 3.9. In order to bump Triton, it backports the block-pointer API compatibility gate carried by #3831 and originating from upstream PyTorch: https://github.com/pytorch/pytorch/pull/191007
The reason for bumping Triton to 3.9 is two-fold:
Summary
config.triton.use_block_ptr=Truegracefully falls back when Triton no longer exposestl.make_block_ptr/tl.advance.a3c5afb73ecd9e70046a983a8dd18fd676a30438(3.8.0) to0a6e13e6e31f18fa75a17ac72dee0dd1bcb507b8(3.9.0).ROCm/tritoninstaller source.Backport note
The cherry-pick had one test-only conflict: the
test_cuda_repro.pytest decorated by the source change does not exist on release/2.13. That nonexistent test was left absent, and its now-unused imports were removed. All production changes applied automatically; the resulting deltas in all 11 shared files exactly match the source commit.Validation on MI300
Validated the seven ROCm Triton nightly-core Inductor suites on four AMD Instinct MI308X (
gfx942) GPUs.Overall Result
test_max_autotune.pycase and twotest_aot_inductor.pycases.Final Suite Results
🔴 P1 =
TIMED OUTorMISSED; 🟡 P2 =FAILEDorERROR. A suite inherits its highest current priority. All timeout reruns passed, so no final P1 suite remains.| Priority | Test suite | Total | Passed | Skipped | Xfailed | Failed | Error | Timed out | Missed |
|---|---|---:|---:|---:|---:|---:|---:|---:|---:|
| |
test/inductor/test_torchinductor.py| 1,373 | 1,298 | 74 | 1 | 0 | 0 | 0 | 0 || |
test/inductor/test_flex_attention.py| 800 | 793 | 6 | 1 | 0 | 0 | 0 | 0 || 🟡 P2 |
test/inductor/test_max_autotune.py| 577 | 419 | 157 | 0 | 1 | 0 | 0 | 0 || 🟡 P2 |
test/inductor/test_aot_inductor.py| 1,028 | 494 | 532 | 0 | 2 | 0 | 0 | 0 || |
test/inductor/test_flex_decoding.py| 570 | 554 | 14 | 2 | 0 | 0 | 0 | 0 || |
test/inductor/test_torchinductor_codegen_dynamic_shapes.py| 2,482 | 1,653 | 770 | 59 | 0 | 0 | 0 | 0 || |
test/inductor/test_torchinductor_opinfo.py| 3,689 | 3,030 | 610 | 49 | 0 | 0 | 0 | 0 || | Total | 10,519 | 8,241 | 2,163 | 112 | 3 | 0 | 0 | 0 |
Environment
gfx942).3.14.4.2.13.0+rocm10.2.0rc0; native base commit75aea545823b36593391c6ea27b4b5e9313a5d0f; validation/test checkouta2d8297132ebb030983a226875c2000b48eb0545.c3f7d541a73f7f0e842220f8d10e54d1cbb0a4f0. Both PR commits have stable patch IDs identical to the validated commits, but the base advanced; the campaign was not rerun after that rebase.10.2.0rc0;torch.version.hip7.17.26413.3.9.0, installed non-editably fromROCm/tritonbranchrelease/internal/3.9.xat0a6e13e6e31f18fa75a17ac72dee0dd1bcb507b8.b010a18d2b648cab83c83967ff26b8fde11acdc6; AMD6bc4aaf6641c56ee104f6200c96a6a571bc77052.Notes
Similar to this PR:
https://github.com/ROCm/pytorch/pull/3831