Tests: check v_movrelsd_b32, v_movrelsd_2_b32 and v_movreld_b32 on the GPU #1158
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1167"
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 mynzjerko on 2026-11-24T12:47:37Z.
Add GPU test coverage for
v_movrelsd_b32,v_movrelsd_2_b32, and non-VGPRv_movreld_b32sources in bothwave64andwave32.What is in it
crates/xcl/src/gpu/recomp/tests.rs: addgpu_movrelsd_and_movrel_b32coveringENC_VOP1andENC_VOP3encodings, dynamicM0indexing and 10-bitM0masking, overlapping source/destination ranges, partialEXECmasking, andv_movreld_b32with SGPR and inline-literal sources.Tested
32.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300,rustc 1.100.0(stable-x86_64-pc-windows-msvc), DXC1.9.2602.17, debug buildcargo test -p xcl --lib -- gpu_movrelsd_and_movrel_b32 --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 SKIPPED)cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (xcl --lib: 699 passed, 0 failed, 21 ignored;SKIPPEDGPU tests: 0)Not tested
scripts/smoke.ps1; tests-only change)AI use
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T13:13:01Z.
NVIDIA (32-lane) run, since Not tested lists NVIDIA. On this card
gpu_wavesruns the test as wave32 and as split wave64.Tested
NVIDIA GeForce RTX 3060 12 GB (32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools installed; rustc 1.100.0
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debugExact head
09865b2fde86c77cd2b29ddfa1dfd92e57374204, which is on currentmain47efa2e(so also the merged result):cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.gpu_movrelsd_and_movrel_b32alone, 10 runs: 10 of 10 passedIt catches broken translations that the existing test misses (local edits to
emit.rs, reverted after; each run together with the existinggpu_packed_math_dots_movrel):v_movrelsd_b32without its write offset ((Some(m0), None)): the new test fails (wave32 lane 0 v_movrelsd_b32 VOP1), andgpu_packed_math_dots_movrelpassesv_movrelsd_2_b32with the two M0 fields swapped: the new test fails (wave32 lane 0 v_movrelsd_2_b32 VOP3 M0-masked), andgpu_packed_math_dots_movrelpassesSo before this PR, neither mistake would have been caught by a test.
Not tested
AI use
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T13:45:20Z.
A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.
Tested
x86_64-pc-windows-gnu.09865b2as it is (based on47efa2e), no uncommitted changes. The lib test binary runs under Wine.gpu::recomp::tests::gpu_movrelsd_and_movrel_b32(--exact, one process): ok, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s.Not tested
AI use
Pull request closed