[release/2.14] Update ROCm Triton to 3.9 and backport Triton block-pointer API gate #3831
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 588 lines diff across 7 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.382
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3831"
general
weight: 0.35
pruthvistony
Human Written Summary
For PyTorch 2.14, this PR updates Triton 3.8 -> 3.9. In order to bump Triton, we need the block-pointer API cherry-pick from upstream PyTorch: https://github.com/pytorch/pytorch/pull/191007
The reason we are 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.669b31acc1dd1b3fd93286afd5db67f65d9f7557(3.8.0) tofc8d31a5439ec9842557a284dc7ca61aee69246b(3.9.0).ROCm/tritoninstaller source.Limited Validation on MI450
7b45c7a09bf79ec4e2826d324714c523147c0e75with-x; no conflicts.git diff --checkand Python syntax checks passed.RUFF,FLAKE8, andPYFMTpassed on all 12 backported Python files.origin/release/internal/3.9.xandupstream/release/3.9.xare exactly aligned atfc8d31a5439.2.14.0+git4dd22fffor ROCm/gfx1250.use_block_ptr=Trueemitted notl.make_block_ptr, produced the one-timeFutureWarning, and matched reference numerics.Validation on MI300
Validation covered the seven nightly core Inductor suites on four idle AMD Instinct MI308X (
gfx942) GPUs.Overall Result
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 |
|---|---|---:|---:|---:|---:|---:|---:|---:|---:|
| 🟡 P2 | test/inductor/test_torchinductor.py | 1,564 | 1,293 | 269 | 1 | 1 | 0 | 0 | 0 |
| | test/inductor/test_flex_attention.py | 867 | 800 | 66 | 1 | 0 | 0 | 0 | 0 |
| 🟡 P2 | test/inductor/test_max_autotune.py | 694 | 474 | 219 | 0 | 1 | 0 | 0 | 0 |
| | test/inductor/test_aot_inductor.py | 1,416 | 825 | 591 | 0 | 0 | 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,847 | 1,710 | 1,078 | 59 | 0 | 0 | 0 | 0 |
| | test/inductor/test_torchinductor_opinfo.py | 3,697 | 3,055 | 609 | 33 | 0 | 0 | 0 | 0 |
| | Included total | 11,655 | 8,711 | 2,846 | 96 | 2 | 0 | 0 | 0 |
Environment
gfx942.3.14.4.2.14.0+rocm10.2.0rc0; native wheel git1e32fc5029e9d57f6ba5f7f9daf9cfe18d60bf13; HIP7.17.26413.26bdd398f8f968d494ce1c503f77df25973a78c2were overlaid onto the native wheel; no C++ files changed and no native PyTorch rebuild was performed.3.9.0fromrelease/internal/3.9.xat0a6e13e6e31f18fa75a17ac72dee0dd1bcb507b8.b010a18d2b648cab83c83967ff26b8fde11acdc6(core) and6bc4aaf6641c56ee104f6200c96a6a571bc77052(AMD).HSA_HOTSWAP_ENABLE=1, zero automatic retries, and fresh run-local Inductor and Triton caches.Notes
Performed a smoke test to verify that Triton 3.9 can generate code for gfx1250-strict target.
The complete Lintrunner invocation also reports pre-existing release-branch PYREFLY, CODEOWNERS taxonomy, and
can_use_tma()docstring findings. The cherry-pick does not modify the reportedcan_use_tma()function.