Repository navigation
Join f16 whole-wave sums and preserve the selected lane's high bits - #19
Open
steven-seagull27 wants to merge 1 commit into
Open
steven-seagull27 wants to merge 1 commit into
steven-seagull27 wants to merge 1 commit into
Conversation
…gh bits Machad3x proposed the split f16 reduction in Marvisak#2214. Exercise both halves of the packed source word for full, lower-forty and upper-half EXEC masks.
Owner
|
Thank you for the f16 sum fix and the tests (head AI-assisted |
Owner
|
Taken into shader/console-flow-lds (Marvisak#439) as f968c54 by cherry-pick, with your authorship kept, together with 9cc76b8 as 611184e. Verified on WARP: translation and validation only, no dispatch. Thank you. Details: Marvisak#439 AI-assisted |
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.
This is the separate f16 sum from Machad3x's title-run report, based directly on the Marvisak#439 head
3fab5a1.The split console-flow path now exchanges each Wave32 half's f32 sum, adds the two totals, and rounds the result to f16. It uses the console-wave ballot and lane-read helpers for the packed upper 16 bits. The tests put the source lane's ID in those high bits so a wrong-half read or a missing EXEC check shows up in the same dword. The existing f32-accumulate/round-once behavior still applies.
Each test dispatches two 64-thread groups. Three EXEC masks (all 64, first 40, upper 32) are each combined into lane 31 and lane 63. For example, with the first 40 lanes active, the low half must hold 40.0h (
0x5100). Finishing in active lane 31 produces0x001f5100, while finishing in inactive lane 63 gives0x00005100.The uninstrumented
emit::split_tests::suite passed 34/34, including the existing integer and float scan/reduction fixtures. Strict shader Clippy passed. The two Marvisak#439 candidates apply cleanly together in a merge-tree check, and this PR contains only the full-size f16 work. No title run on my side.cargo test -p victory-shader --lib half_sum_and_packed_lane_cross_host_halves -- --nocapture