Shaders: with pair meetings, a 16-bit wave sum goes on in the block after each exchange of the halves (on #3683) #3824
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3824"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by redNSF on 2026-11-29T07:46:02Z.
Stacked on #3683 (pair meetings, itself on #439); the last commit is this change. It does not depend on #3759 or #3823 (also on #3683); the three merge without conflicts.
Problem. The f16 sum of a whole console wave (
Shape::HalfinLower::shape) exchanges the two halves' sums, then takes the console wave's ballot (console_ballot) and reads a lane across the halves (console_read_lane). With pair meetings each of these exchanges is a meeting of the two halves, and the code after a meeting goes on in a new block (Lower::cur). The sum kept the block it began in, so the ballot's exchange was asked for outside the block being lowered and the program was refused: "an exchange of the halves outside the block being lowered".Change. The sum takes
self.curagain after each exchange, as the other wave reductions inshapealready do. Without pair meetings an exchange does not change the block, so the code for groups of one console wave is as before.Effect. Grand Theft Auto VI,
translate --list --host-lanes 32-32: compute programs that translate go from 2,619 (#3683) to 2,621 of 2,682; none are lost. The two gained are the two refused for this reason:compute_graph_ops:CS_TransposeVecMatMulOperationandCS_TransposeVecMatMulAlignedOperation.Tests (RTX 3060, 32-lane waves only):
half_sums_in_groups_of_several_console_waves(split_tests): the program ofhalf_sum_and_packed_lane_cross_host_halvesin groups of two and four console waves. Every console wave sums its own lanes, over the whole wave and over its lanes below 40, and tags the sum with its own lane 31 or 63. It translates for a 32-lane target anywhere (refused before, with the reason above) and is exact on the card, 128 and 256 threads, two groups each.cargo test -p victory-shader --libon WARP: the same 4synthetic_testsfail here as on #3683 alone.Not run in the title: this PR claims that the two programs translate and that the sum behaves as the test checks on this card.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.