Repository navigation
TFQ Metal: the Split-K heuristic test expects what the heuristic returns - #6513
Merged
Merged
Conversation
Owner
Author
|
READY to land on this head. Test-only change: the expected value now matches pickSplitK's arithmetic (112 active row blocks under the 128 target, ceil(128/112) = 2). pickSplitK is unchanged, so picks and tokens are unchanged. The target's tests pass 296/0 on an M4 Mac after, 295/1 before.
|
pickSplitK(14336, 4096, 4) returns 2, not 1. n=14336 gives 112 row blocks, and rows=4 gives one row tile. That makes 112 active threadgroups, under the 128 target, so the pick is ceil(128/112) = 2. k=4096 gives 32 column blocks, so the cap of 8 does not apply. The test has failed on every macOS host since it landed. pickSplitK is unchanged, so Split-K picks and output tokens are unchanged.
ashhart
force-pushed
the
lead/tfq-splitk-test
branch
from
December 5, 2026 18:34
714f282 to
5220a91
Compare
ashhart
added a commit
to BadAd84/TensorFold
that referenced
this pull request
Dec 5, 2026
ashhart
added a commit
that referenced
this pull request
Dec 5, 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.
The host test "Split-K heuristic saturates cores on small-R projections" expected
pickSplitK(14336, 4096, 4) == 1, and has failed on every macOS host since it landed.The function returns 2: n=14336 gives 112 row blocks and rows=4 gives one row tile, so 112 threadgroups are active, under the 128 target, and the pick is ceil(128/112) = 2. k=4096 gives 32 column blocks, so the cap of 8 does not apply.
This fixes the test only, with the arithmetic in a comment.
pickSplitKis unchanged, so Split-K picks and output tokens are unchanged. The target's tests pass 296/0 after (295/1 before).No GitHub job runs this target today; the local Mac CI leg does. Wiring more Mac test targets into CI is separate work.