You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#6402 by correcting output addressing in the gfx1250 FlyDSL gemm_a16w16 kernel for large BF16 GEMM outputs.
The kernel previously used a single output buffer descriptor and global store offsets. For large padded M grids, offsets could exceed the 32-bit byte-offset range, allowing stores from invalid rows to wrap around and overwrite earlier output data.
This change rebases the output pointer at each M tile using 64-bit arithmetic, limits the descriptor to the valid rows in that tile, and uses tile-local offsets for output stores. It also guards stores against rows beyond the logical M dimension. The regular and split-K paths share the corrected final-store logic.
Tests
Added regression tests for the large-offset arithmetic and the padded-grid corruption case, along with GPU tests for a control shape, the 2 GiB boundary, and the 4 GiB padded-grid scenario.
Local checks passed:
Ruff
Black
Python compilation
CPU regression tests (3 passed)
The three GPU integration tests were skipped locally because gfx1250 hardware was unavailable. They still need to be run on a suitable AMD GPU.
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 7119 --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.
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
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.
Summary
Fixes #6402 by correcting output addressing in the gfx1250 FlyDSL
gemm_a16w16kernel for large BF16 GEMM outputs.The kernel previously used a single output buffer descriptor and global store offsets. For large padded M grids, offsets could exceed the 32-bit byte-offset range, allowing stores from invalid rows to wrap around and overwrite earlier output data.
This change rebases the output pointer at each M tile using 64-bit arithmetic, limits the descriptor to the valid rows in that tile, and uses tile-local offsets for output stores. It also guards stores against rows beyond the logical M dimension. The regular and split-K paths share the corrected final-store logic.
Tests
Added regression tests for the large-offset arithmetic and the padded-grid corruption case, along with GPU tests for a control shape, the 2 GiB boundary, and the 4 GiB padded-grid scenario.
Local checks passed:
The three GPU integration tests were skipped locally because gfx1250 hardware was unavailable. They still need to be run on a suitable AMD GPU.