Skip to content

[OPUS] [gfx1250] Clear HIP sticky error after A0 strict-CO probe failure (#7185 follow-up) - #7505

Merged
zufayu merged 1 commit into
mainfrom
opus-gfx1250-clear-sticky-error
Nov 6, 2026
Merged

zufayu merged 1 commit into
mainfrom
opus-gfx1250-clear-sticky-error

Conversation

@zufayu

@zufayu zufayu commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Problem

On an MI450 A0 node running a HIP runtime older than ROCm 10.1, the DeepSeek-V4-Flash server crashes at startup with hipErrorNoBinaryForGpu surfacing inside torch.empty (this is the extended-test CI failure). The reported location is a red herring — nothing is actually wrong at torch.empty.

Root cause

#7185 added hip_module_accepts() as a capability probe: on A0 it hipModuleLoadData()s the gfx1250-strict (0xeb) code object and, when the old runtime rejects it, falls back to the regular gfx1250 CO. The fallback itself works — but the failed probe leaves HIP's sticky last-error set to hipErrorNoBinaryForGpu and never clears it. A later successful HIP call does not reset that record, so the stale error is inherited by the next unrelated HIP call (torch.empty during serving init) and aborts the process there.

Fix

One line: clear the recorded error with hipGetLastError() in the probe's failure branch, so a failed capability probe leaves no error state behind.

Validation (real MI450 A0, torch HIP 7.16.26315, old runtime)

without this line with this line
server startup dies — hipErrorNoBinaryForGpu in torch.empty (matches CI) starts (~ready)
fallback warning n/a prints once: [opus] ... falling back to regular gfx1250 CO (expected)
HIP load errors — none (no hipErrorNoBinaryForGpu, no invalid device function)

A/B differ only by this one line; built-module check confirms it compiled in (hipGetLastError refs in module_deepgemm_opus.so: 0 → 1).

Scope note

This fixes only the startup sticky-error crash. A separate, independent in-serving GPU memory access fault on A0 (reproduces across F4/A8W4, flydsl 0.4.1/0.4.2, and multiple aiter commits; unrelated to this sticky error) is being investigated separately and is out of scope here.

Draft pending the A0 A/B log attachment.

🤖 Generated with Claude Code

…failure

#7185 added hip_module_accepts() as a capability probe: on an A0 node it
tries hipModuleLoadData() on the gfx1250-strict (0xeb) code object and,
when the HIP runtime is older than ROCm 10.1 and rejects it, falls back to
the regular gfx1250 CO. The fallback works, but the failed probe leaves
HIP's sticky last-error set to hipErrorNoBinaryForGpu and never clears it.
A successful HIP call does not reset that record, so the stale error is
inherited by the next unrelated HIP call (e.g. torch.empty during serving
init) and aborts the process there, far from its real cause.

Clear the recorded error with hipGetLastError() in the probe's failure
branch so a failed capability probe leaves no error state behind.

Validated on a real MI450 A0 node (torch HIP 7.16.26315, old runtime):
without this line the DeepSeek-V4-Flash server dies at startup with
hipErrorNoBinaryForGpu surfacing in torch.empty (matches the extended-test
CI crash); with it the server starts, the expected "falling back to regular
gfx1250 CO" warning prints once, and no HIP load error occurs.

Note: this fixes only the startup crash. A separate, independent in-serving
GPU memory access fault on A0 (unrelated to this sticky error) is tracked
elsewhere and is out of scope for this PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

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

Extended tests (opt-in via labels):

Label Tests
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 gfx1201 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 7505 --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.

@aiter-bot

aiter-bot commented Nov 5, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 5d23bef39732 · 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. Which architecture, dtype and shape boundaries select the changed kernel path, and what invariant prevents unsupported inputs from reaching 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.

@zufayu
zufayu requested a review from demonsan November 6, 2026 01:03
@zufayu
zufayu marked this pull request as ready for review November 6, 2026 01:13
@zufayu
zufayu requested a review from a team November 6, 2026 01:13
@github-actions github-actions Bot changed the title [OPUS][JIT][gfx1250] Clear HIP sticky error after A0 strict-CO probe failure (#7185 follow-up) [OPUS] [gfx1250] Clear HIP sticky error after A0 strict-CO probe failure (#7185 follow-up) Nov 6, 2026
@github-actions github-actions Bot added the OPUS label Nov 6, 2026

@demonsan demonsan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zufayu
zufayu merged commit b0e8ce0 into main Nov 6, 2026
@zufayu
zufayu deleted the opus-gfx1250-clear-sticky-error branch November 6, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants