← Back to Pull requests

[TE] gfx1250-strict fixes: Triton GMM configs and CK FP8 grouped GEMM #823

Open
unknown opened this pull request with 273 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 30, 2026 23:38 UTC
Author

Description

Two small fixes for the gfx1250-strict target (MI455X A0 runtime), found running TE's tests in strict mode.

  • Triton GMM: get_config loads configs/<arch>-GMM.json using Triton's target arch, which is gfx1250-strict under the strict runtime, so the lookup fails (no such file). The tables hold only Triton meta-parameters, so strict reuses the gfx1250 table by stripping -strict for the lookup; Triton still compiles for the real target, and there is no duplicate table to keep in sync.

  • CK FP8 grouped GEMM: gfx1250-strict lacks the 16x16x128 FP8 WMMA instruction, so the 256x256x128 tile with K_Warp_Tile=128 does not build for that target. Use K_Warp_Tile=64 when __gfx1250_strict__ is defined, like the existing per-target tile override for gfx950.
  • Fixes # (issue)

    Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)

  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

  • Infra/Build change

  • Code refactoring
  • Changes

  • pytorch/triton_kernels/gmm/gmm_kernels.py: look up the GMM config table by base arch (get_arch().removesuffix("-strict")).

  • common/gemm/ck_grouped_gemm/ck_grouped_gemm_fp8.cpp: K_Warp_Tile=64 for gfx1250-strict.

  • No change for gfx942, gfx950, non-strict gfx1250 or CUDA.
  • Tests (MI455X, gfx1250-strict): Triton grouped GEMM tests pass with the gfx1250 table (test_grouped_gemm 652/652 plus the Triton GroupedLinear cases); CK grouped GEMM tests pass, including all 21 FP8 cases.

    Checklist:

  • I have read and followed the contributing guidelines

  • The functionality is complete

  • I have commented my code, particularly in hard-to-understand areas

  • I have made corresponding changes to the documentation

  • My changes generate no new warnings

  • I have added tests that prove my fix is effective or that my feature works

  • New and existing unit tests pass locally with my changes
  • Diff: 273 lines (+204 / -69) across 3 files Reviewer: matthiasdiener Review duration: 1319m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.63) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 273 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.336
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #823"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 43.0% reviewed sensitive_module
    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: 62.7% (MEDIUM) · Higher = larger blast radius
    62.7%
    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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 35.8% · Moderate risk
    35.8%