Tests: the sparse VRAM test's scalar loads take no s0 offset #1446
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1456"
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 ivall/xcl. Originally posted by upipibi on 2026-11-24T16:20:42Z.
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 #1356 follow this test's garbage loads.Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-24T16:51:01Z.
AMD run, which this PR lists as not tested, plus an NVIDIA one.
Tested: pass, head
309b45aapplied on its basemainb7aa9f3, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --lib -- gpu::recomp --test-threads=4:gpu_sparse_vram_descriptors_buffers_and_xmemok.No hang or device removal on either. I can't say whether this explains the
0x887A0006hangs on #1356: I only saw that PR fail its split-wave64 assert here, not hang.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.
Imported from ivall/xcl. Originally posted by marquezinii on 2026-11-24T18:02:57Z.
On Not tested ("whether the
0x887A0006hangs came only from this"): on an RTX 5070 thegpu::tests run with 32 threads hang the device onmain, with this test's mismatch first, and did not in 20 runs with this PR.Tested
xcllib test binary run directly:<xcl lib test exe> --test-threads=32 gpu::.mainf4ce27c309b45amain9e3831e9e3831e+ this PR + #1523, cherry-pickedf4ce27c:gpu_sparse_vram_descriptors_buffers_and_xmemfirst (submit 1 lane 0 mismatch, left 0, right 1077), thenD3D12 device removed: 0x887a0006and 20 moregpu::recomptests failing on0x887A0005/0x887A0006.f4ce27cthat I caught with procdump ended in0xC0000374(heap corruption), noticed in an allocation ofnull::tests::device_queue_fence_resource_roundtrip; that test is where it was found, not what corrupted the heap, and I have not tied it to this test.cargo test --workspace -- --test-threads=4onf4ce27c: 700 passed, 0 failed, 41 ignored; SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Not tested
AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and drafted this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:52:50Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T21:14:05Z.
Closing in favour of #614. Its first commit is this change (
SOFFSET125 =0x7D), and its second commit (tests taked3d12x::backend()instead of callingreal::init()again) fixes the parallel hang in #1727: 0 of 4 whole-lib runs hung on an RTX 3070 with #614, against 3 of 4 onmain(numbers). Thanks to marquezinii and DavidM1911 for the runs here.upstream-sync referenced this pull request2026-11-25 16:10:51 +00:00
Pull request closed