Skip to content

Add reads_merged flag to track scale read merge status in E2E tests#1227

Open
Hardcode84 wants to merge 3 commits intoiree-org:mainfrom
Hardcode84:check-merge-contig-reads
Open

Add reads_merged flag to track scale read merge status in E2E tests#1227
Hardcode84 wants to merge 3 commits intoiree-org:mainfrom
Hardcode84:check-merge-contig-reads

Conversation

@Hardcode84
Copy link
Copy Markdown
Contributor

@Hardcode84 Hardcode84 commented Apr 1, 2026

Adds a reads_merged parameter to _dbuf_mxfp4_helper and the 4-wave MXFP4 preshuffle E2E tests. The flag records whether merge_contiguous_reads successfully merges all vector<1xi8> scale loads into wider vectors. Tests assert that the actual merge status matches the declared flag, catching both regressions (merged->unmerged) and improvements (unmerged->merged) that need flag updates.

Adds a reads_merged parameter to _dbuf_mxfp4_helper and the 4-wave
MXFP4 preshuffle E2E tests. The flag records whether
merge_contiguous_reads successfully merges all vector<1xi8> scale
loads into wider vectors. Tests assert that the actual merge status
matches the declared flag, catching both regressions (merged->unmerged)
and improvements (unmerged->merged) that need flag updates.

Currently only 128x256x256 with wave_shape (1,4) merges; all other
configs have unmerged scale reads.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
@Hardcode84 Hardcode84 requested review from harsh-nod and panditsa April 1, 2026 20:37
Hardcode84 and others added 2 commits April 1, 2026 22:42
Auto-generates test IDs from block dimensions instead of duplicating
them manually in each pytest.param call.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Add 128x256x256 with wave_shape (4,1) and 256x192x256 with wave_shape
(2,2) to MXFP4 preshuffle E2E tests. Both configs merge scale reads
successfully. Include wave_shape in auto-generated test IDs to
distinguish configs sharing the same block dimensions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
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.

1 participant