test(gpu): name the lane a wrong WaveReadLaneAt read came from #272
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!272
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/272/head"
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?
@rasptum on GitHub · 2026-11-21 19:54 UTC · original
rasptum:test/wave-shuffle-block-misroute→main· +49 −28 · 3 files · 1 commits · merged 2026-11-21 19:58 UTCChange
wave_shufflereported a wrongWaveReadLaneAtread on WARP 1.0.22 as the exact inverse of the requested shuffle (#145). That description is a coincidence of the one shuffle the fixture used. This PR makes the fixture name the lane each wrong read came from.WaveReadLaneAt(t, (lane + 1) % width). It is not self-inverse at any width above 2, so WARP's native width of 8 is now an informative control.inverseis replaced byblock_misrouted. A wrong read counts asblock_misroutedwhen it equals the lane a block-wise runtime returns if it picks the source block using the request of the wrong lane: the lane of the reader's block that sits at the requested position. The block size is the adapter's native width.The shared interface is the
wave_shuffleoutput line, which changes from one line per variant to three. Nothing in the tree parses it.Refs #145.
Verification
Commit
8c9ee08onmain7233cec. Windows 10 22H2 build 19045.6466, D3D12 debug layer on.wave_shuffle_warpskips at SM 6.2 andwave_shuffle_hardwareskips after the native variant passes, as onmain.wave_shuffle_hardwarepasses.wave_shuffle_warpandbvh_wave64_warpfail, as onmain.offscreen_check warp --wave-shuffleon WARP 1.0.22 (driver=1.0.22.0, lanes 4..128), threads out of 64:7n+3n+1block_misrouted, 0 otherblock_misrouted, 0 otherblock_misrouted, 0 otherblock_misrouted, 0 otherblock_misrouted, 0 otherblock_misrouted, 0 otherRTX 3060 (driver 32.0.15.9636, lanes 32..32): native 32 and forced 32 are 64 correct for both shuffles, 0 control errors. Forced 16 and 64 skip on the lane range.
Evidence and follow-up
5n+2reads and 40 of 64 for3nat width 64.lin blockbrequesting indexi, WARP 1.0.22 returns the lane at positioni % 8of blockreq(8b + i % 8) / 8, wherereqis the request of another lane of the reader's block. Reads are correct whenever all lanes of a block request the same source block, which is why the mirror, the broadcast,lane / 2,lane & ~1andlane ^ 9pass.block_misrouted.bvh_wave64_warpfails for the same reason. Whether it should skip by a measured property on adapters that misroute is a maintainer decision and is not part of this PR.Checklist
docs/experiments.mdnow describes the rule.)AI-assisted (Claude Code). The Windows results were measured locally.
🤖 Generated with Claude Code