← Back to Pull requests

Disable origami for ROCm 10.0 #3588

Closed
unknown closed this pull request without merging on Aug 24, 2026 17:07 UTC
View on GitHub
unknown unknown commented on Aug 21, 2026 05:09 UTC
Author

Motivation

Origami is not supported on ROCm 10.0+. Left enabled, it would attempt to import/use origami on 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:

  • Parse torch.version.rocm into a (major, minor) tuple _rocm_version; introduce ORIGAMI_UNSUPPORTED_ROCM_VERSION = (10, 0).

  • _origami_enabled() now returns config.rocm.origami and _rocm_version < ORIGAMI_UNSUPPORTED_ROCM_VERSION.

  • The cached import origami gate now also requires _rocm_version < (10, 0); on ROCm >= 10.0 with the config knob on, origami is set to None and a one-time warning is logged.

  • torch/_inductor/config.py: documents the new ROCm-version condition on the rocm.origami knob.
  • Test Plan

    test/inductor/test_origami.py:

  • New TestOrigamiVersionGate unit tests (no GPU / no origami pkg required) patch _rocm_version to check _origami_enabled() across below-cutoff (9,9), at-cutoff (10,0), above-cutoff (10,1), and config-off cases.

  • Existing suites updated with an ORIGAMI_ROCM_SUPPORTED guard 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

  • Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
  • Diff: 190 lines (+142 / -48) across 2 files Reviewer: pruthvistony Review duration: 5038m
    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
    0.36
    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%
    56%
    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.314
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3588"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 35.9% (MEDIUM) · Higher = larger blast radius
    35.9%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 15.5% · Safe to merge
    15.5%
    Repository