Disable origami for ROCm 10.0 #3588
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 190 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.314
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3588"
general
weight: 0.35
pruthvistony
Motivation
Origami is not supported on ROCm 10.0+. Left enabled, it would attempt to import/use
origamion unsupported ROCm builds. This PR gates origami off for ROCm >= 10.0 so it only runs where it's actually supported.Technical Details
Adds a ROCm version gate in
torch/_inductor/heuristics/template/triton.py:torch.version.rocminto a(major, minor)tuple_rocm_version; introduceORIGAMI_UNSUPPORTED_ROCM_VERSION = (10, 0)._origami_enabled()now returnsconfig.rocm.origami and _rocm_version < ORIGAMI_UNSUPPORTED_ROCM_VERSION.import origamigate now also requires_rocm_version < (10, 0); on ROCm >= 10.0 with the config knob on,origamiis set toNoneand a one-time warning is logged.torch/_inductor/config.py: documents the new ROCm-version condition on therocm.origamiknob.Test Plan
test/inductor/test_origami.py:TestOrigamiVersionGateunit tests (no GPU / no origami pkg required) patch_rocm_versionto check_origami_enabled()across below-cutoff(9,9), at-cutoff(10,0), above-cutoff(10,1), and config-off cases.ORIGAMI_ROCM_SUPPORTEDguard so origami-enabled tests skip on ROCm >= 10.0, and the "skipped" suite now covers unsupported ROCm too.Test Result
<!-- fill in with actual run output -->
Submission Checklist