[opus] fix(gfx942): retune stale GLM5 BF16 GEMM config - #4301
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
junhaha666
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The GLM5 BF16 tuned GEMM configuration referenced gfx942 Opus kernel 10211, which was removed in #4204. The stale row was later introduced in #4236.
Because 10211 is no longer present in the current kernel registry, codegen silently filters this tuning entry and it is not included in the runtime lookup. This PR replaces it with the best valid kernel from a fresh tuning run.
Technical Details
Updated the gfx942 BF16 configuration for:
The configuration changes from:
To:
No kernel implementation or dispatch code is changed.
Test Plan
Restore 10211 temporarily and tune all valid gfx942 Opus candidates.
Remove 10211, rebuild in an isolated JIT directory, and repeat the same full candidate sweep.
Run a paired benchmark of 10211/splitK=3 and 10201/splitK=3 using:
Validate every gfx942 Opus entry in the BF16 model-config CSVs against the current kernel registry.
Test Result
Full candidate sweep:
Configuration Winner Latency Error ratio
━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━ ━━━━━━━━━━━━━
With 10211 restored 10211/splitK=3 34.4598 us 0.0084
───────────────────── ──────────────── ──────────── ─────────────
Current registry 10201/splitK=3 34.5862 us 0
Paired benchmark median:
Kernel Workspace Latency Mean absolute error Bad ratio
━━━━━━━━━━━━━━━━ ━━━━━━━━━━━ ━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━
10211/splitK=3 BF16 34.3804 us 0.198291 0.009013
──────────────── ─────────── ──────────── ───────────────────── ───────────
10201/splitK=3 FP32 34.5818 us 0.0000139 0
10211 was only 0.58% faster in the paired benchmark while producing less accurate results. Restoring an additional kernel is therefore not justified.
After updating the row, all gfx942 Opus BF16 model-config entries reference valid kernel IDs.
Submission Checklist