Skip to content

[GEMM] a16w16 on gfx1250-strict: skip borrowed gfx1250 OPUS rows - #8099

Merged
zufayu merged 52 commits into
ROCm:mainfrom
JiaoliangYu:fix/a16w16-gfx1250-strict-skip-opus
Nov 21, 2026
Merged

zufayu merged 52 commits into
ROCm:mainfrom
JiaoliangYu:fix/a16w16-gfx1250-strict-skip-opus

Conversation

@JiaoliangYu

Copy link
Copy Markdown
Contributor

Motivation

A gfx1250-strict (MI450 A0) a16w16 lookup with no rows of its own borrows the gfx1250 rows. OPUS resolves kernel ids for the exact arch, so every borrowed OPUS row fails at launch on A0:

ValueError: unknown OPUS kid 184

Change

When the lookup borrows family rows, skip OPUS rows so the shape takes the default path. Nothing changes when the arch has its own rows, or on gfx1250 B0.

Test

MI450 A0, ROCm 10.3.0a20261113, six shapes whose tuned rows are gfx1250 OPUS rows:

  • main: 6/6 unknown OPUS kid.
  • This branch: OPUS is skipped. The default Triton path on A0 still needs the strict config fallback and a Gluon a16w16 fix ([Triton/Gluon] [JIT] gfx1250-strict enablment fixes #7767 / compiler).
  • With those two applied locally: 6/6 match torch, rel err <= 3.3e-3. DeepSeek-V4.1-Flash DEP4 serves on A0 this way (GSM8K 3-shot 0.913).

black and ruff pass.

A gfx1250-strict lookup with no rows of its own borrows the gfx1250 rows. OPUS resolves kernel ids for the exact arch, so a borrowed OPUS row fails at launch on MI450 A0 (unknown OPUS kid). Skip those rows so the shape takes the default path. Nothing changes when the arch has its own rows or on gfx1250 B0.
@JiaoliangYu
JiaoliangYu requested a review from a team November 17, 2026 10:55
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter standard tests on MI35X
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the Radeon R9700 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 8099 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.

@aiter-bot

aiter-bot commented Nov 17, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision ed8a2552c82a · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. What is the most important boundary or failure mode introduced by this change, and what evidence covers it?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — missing ### Reviewed revision in the PR description
  • FAIL — missing ### Behavior and intent in the PR description
  • FAIL — missing ### Validation and unverified scope in the PR description
  • FAIL — missing ### PR-specific question in the PR description
  • FAIL — missing ### Changed op tests in the PR description
  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@yzhou103

yzhou103 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

it seems it is fixed in #7514

@zufayu
zufayu merged commit 3d2db50 into ROCm:main Nov 21, 2026
60 checks passed
ZLkanyo009 added a commit that referenced this pull request Nov 23, 2026
Keep main's CPU Torch fallback and FP32 CPU accumulation from #8251,
using the existing shared architecture helper inside the guarded lookup.
Retain #8099's rejection of borrowed OPUS rows on gfx1250-strict.

The eager launch body is unchanged. CPU source-body checks cover 48
numerical/out-buffer cases against main and a Torch reference, the
CPU eager decline, invalid output dtype, and architecture error
propagation. Provider interface/contracts: 145 passed with GPUs hidden.
Black, Ruff and diff-check pass. No new GPU or performance run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants