Repository navigation
Conversation
gpu_sparse_vram_descriptors_buffers_and_xmem encodes its three S_LOADs without
SOFFSET, so it is 0, which is s0, not NULL (0x7D): each load reads at its base
plus the low dword of the argument table's address. That is right only while
the table sits at a 4 GiB-aligned offset of window 3, i.e. when no other test
allocated there first; in parallel runs it reads other memory, takes garbage
descriptors and the output is never written ("submit 1 lane 0 mismatch,
left 0, right 1077").
The loads take SOFFSET NULL now, and the test allocates a block ahead of the
table so a load that adds s0 fails on every run, not only in parallel ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
AMD run, which this PR lists as not tested, plus an NVIDIA one. Tested: pass, head
No hang or device removal on either. I can't say whether this explains the Not tested: Wine; the whole workspace suite. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
On Not tested ("whether the Tested
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and drafted this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Closing in favour of #614. Its first commit is this change ( |
gpu_sparse_vram_descriptors_buffers_and_xmemencodes its threeS_LOADs withoutSOFFSET, so the field is 0. That is s0, not NULL (0x7D), and the translation adds it:… + (uint64_t)s0on every scalar load. s0 is the low dword of the argument table's address, so each load reads at its base plus those bits. That is right only while the table sits at a 4 GiB-aligned offset of window 3, i.e. when no other test allocated there first. In parallel runs the test then takes garbage descriptors and never writes its output:submit 1 lane 0 mismatch, left 0, right 1077. That is the failure reported on #1356, where it came before the device hangs.Test-only.
What is in it
crates/xcl/src/gpu/recomp/tests.rs,gpu_sparse_vram_descriptors_buffers_and_xmem:SOFFSETNULL (0x7D);Tested
--exact):main930e8b4as it is: passes. With one extra window-3 allocation before the table: fails with the reported message (left 0, right 1077).SOFFSETNULL: passes, with and without the extra allocation.309b45a): passes 3 of 3. With theSOFFSETchange taken out (the extra allocation kept): fails every time with the same message.cargo build --workspace+cargo test --workspace --no-fail-fast -- --test-threads=4at309b45a(onmainb7aa9f3): 770 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
Not needed: test-only change.
Tested by others
<lib test exe> --test-threads=32 gpu::. Onmainf4ce27c1 of 8 runs failed: this test's mismatch first, then0x887a0006and 20 moregpu::recomptests on0x887A0005/0x887A0006. With this PR, 10 of 10 clean. So the0x887A0006hangs from Recompiler: elide EXEC masking where all lanes are active and cache lane active bit #1356 follow this test's garbage loads.Not tested
AI use
🤖 Generated with Claude Code