Repository navigation
Add wave-based UAV atomic waterfall experiment - #793
potatoeking5150-commits wants to merge 2 commits into
Conversation
|
The RX 6500 contrast is useful for #369: the direct probe still reports |
|
I updated your branch in 978273b. The waterfall runs explicitly with --gpu-alias-atomic-waterfall and shares resource setup and readback with the existing direct probe. The regular test still runs the direct probe with its original result check. The documentation links your RX 6500 measurement and shows both commands. On Windows 26200.9974 with the debug layer enabled, both commands read 64 in all four slots on WARP 10.0.26100.9818 and RTX 4060 Laptop driver 32.0.16.1656. Adding one to each grouped add made WARP read 128 in all four slots and exit 1. Restoring the shader returned the expected counts. The diagnostic uses exit 77 for missing SM 6.0/WaveOps capability. |
I tested the dynamic-index UAV atomic behavior on an AMD Radeon RX 6500 (RDNA 2) using Windows 11, driver 32.0.21045.29003.
The original atomic-array probe consistently reports:
The main title-address lookup/write fixture still reports zero mismatches.
I created a separate experimental shader,
tests/gpu_alias_atomic_waterfall.hlsl, that uses wave operations to group lanes by descriptor index and performs oneInterlockedAddper distinct index within each group.Results:
The original atomic probe was left unchanged. The waterfall implementation is an isolated experiment with its own test registration.
This demonstrates a working alternative on the RX 6500 and WARP, but does not establish the underlying driver or hardware cause.
I am sharing this for review and would appreciate feedback on whether this approach would be appropriate as a potential workaround.
Summary
Adds an isolated experimental implementation of the dynamic-index UAV atomic test using wave operations.
The original
ProbeArrayAtomicsshader and existing test remain unchanged.Implementation
New shader:
tests/gpu_alias_atomic_waterfall.hlslThe shader:
InterlockedAddper distinct descriptor index per wave iteration.Additional changes register the new shader build output and expose a separate test through
offscreen_check.exeand CTest.Hardware tested
AMD Radeon RX 6500
Microsoft WARP
Results
Scope
This is an experimental workaround, not a confirmed diagnosis or correction of the underlying driver behavior.
The original test remains available for comparison.
Review requested
Please review the wave-based descriptor grouping approach and advise whether it is suitable for broader testing or eventual integration.