Repository navigation
test(gpu): cover the 64-bit LDS bitwise ops and the two-dword exchanges - #3208
YaBulochka wants to merge 1 commit into
Conversation
|
Apple M2 check of head 07bdd68 (macOS 26.4, MoltenVK 1.4.2 direct, subgroup 4..32, llvm-mc 23.1.6, Python 3.13.18): translation is fine but the new fixtures cannot be judged on this device yet.
So I am NOT claiming any of these new tests passed on this Mac. The skips are the known MoltenVK 32-lane harness limitation; open PR #2886 addresses exactly that and would let these run. No regressions observed in what did execute; no code changed by me, head fetched read-only. Build note: full build fails at vk_pipeline_check.cpp:567 on AppleClang 17 (BUILD-822, fix in open PR #2927); GPU binaries built. Synthetic shaders and counts only; no game files. AI-assisted. |
|
Tested 07bdd68 on NVIDIA GeForce RTX 3090 (Ampere, subgroup 32..32), driver 610.88 (Vulkan 1.4.341), Windows 11 Pro 26300: the two new wave32 fixtures are skipped on 32-wide GPUs. The values are right once they run. The PR's diff applied cleanly to
|
|
Tested Both new shaders need a 64-wide compute subgroup, which this 32-wide NVIDIA device skips natively. Under wave64 emulation ( Translated and spirv-val clean. NVIDIA Blackwell coverage of the emulated path (a native 64-wide run still needs an AMD card). AI-assisted. |
|
Tested on an NVIDIA GeForce RTX 5090 (Windows 11, driver 621.24, Vulkan SDK 1.4.363.0),
|
|
Tested 07bdd68 on AMD Radeon RX 9060 XT (RDNA4), AMD driver 26.10.44 (LLPC, Vulkan driver 2.0.395), Windows 11 Pro 10.0.26300, subgroup 32..64: pass. The checks above have no AMD run from outside the author; this adds an AMD card with native 64-wide subgroups.
Test programs: an MSVC 14.44 build of main ec8ec4c; this PR's runtime C++ and CMake are identical to that commit, and the translator, runner and |
17a7743 to
1fd5086
Compare
|
Independent check, AI-assisted, two vendors. Environment: Windows 11 build 26300, MSVC RelWithDebInfo AMD Radeon(TM) Graphics (gfx1036, Ryzen 5 7600X), driver 32.0.21045.29003, subgroup 32..64: 3/3 pass. The two new fixtures print exactly the words from your RADV run: NVIDIA GeForce RTX 5070, driver 32.0.16.2124, subgroup 32..32: 1/3 pass, the two new fixtures skip: They are wave32 fixtures ( Running the same So the fixtures themselves are right on both vendors; only the registration over-restricts them. Adding No game files used; counts only. |
|
Tested 17a7743 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass. New GPU fixtures:
Full GPU suite (run from PR worktree against main runtime build):
AI-assisted (OpenCode). |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested 07bdd68 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
The two new wave32 tests never run on a 32-wide GPU. They report AI-assisted (Claude Code). |
|
Retested the new head 1fd5086 (applied to The new commit doesn't add the two names to the |
|
Independent GPU check at 1fd5086 on Windows 11, Ryzen 5 3600, RTX 3060 12 GB, NVIDIA driver 621.14. Command: I ran the same filter twice with separate work directories, using the existing local Vulkan harness from #2582. All three shaders translated and passed spirv-val in both runs. LEONIDA_W64_EMULATE=0:
LEONIDA_W64_EMULATE=1:
AI-assisted testing and write-up. |
1fd5086 to
bc22ee5
Compare
|
Re-tested the current head |
|
Tested Confirmed @Rainmaker33’s native-runner finding on the current head With
Both names are registered in the expected-word table but absent from the wave32 exceptions in the runner’s AI-assisted verification. |
|
Tested bc22ee5 on AMD Radeon RX 9070 XT (RADV GFX1201) and the Ryzen 7 9800X3D iGPU (RADV RAPHAEL_MENDOCINO, gfx1036), Mesa 26.2.6, Linux 7.3.4: pass, no regressions.
No game files. AI-assisted. |
|
Tested bc22ee5 on macOS 27.2.1 / CPython 3.15.2, KosmicKrisp (Mesa 26.3.0, Apple M3 Pro, subgroup 32..32, llvm-mc 23.1.5), build from this branch; no game files: @tylerstraub's finding reproduces on the current head.
Minor, same area: both are also in
|
|
Tested bc22ee5 merged with main 03b09a0 on Windows 11 with two GPUs (MSVC 14.51): built vk_compute_test, vk_store_test and vk_harness;
Concern (verified): the PR adds the two names to the wave32 lists in Negative control: the PR touches no translator or runtime file, so main has nothing to restore; changing the first expected word of |
bc22ee5 to
c82ebcb
Compare
|
Tested Rechecked the two wave32 LDS fixtures at Running the same modules directly with
The runner still needs to select wave32 for these fixtures to count them as passes on this device. AI-assisted verification. |
|
Tested the current head c82ebcb on an AMD Radeon RX 9070 XT (RDNA4, subgroup 32..64) with AMD's Windows driver, |
|
Tested c82ebcb on Intel UHD 630 (CFL GT2, subgroup 8..32), Mesa 25.2.8 ANV, Ubuntu 24.04: run_gpu_tests.py --filter cs_w32_lds skips the two new fixtures, "SKIP cs_w32_lds_b64_bitwise SKIP (no 64-wide compute subgroup on this device)" and the same for cs_w32_lds_wrxchg2, while cs_w32_lds_subdword, cs_w32_lds_u8_d16 and cs_w32_lds_wide pass. The two new names are not in the tuple in scripts/run_gpu_tests.py (the one starting "cs_store", "cs_signed_zero_nan" that ends with cs_w32_lds_subdword and cs_w32_lds_wide) that leaves a fixture out of --require-wave64, so on a device whose widest subgroup is 32 the runner skips them. Dispatched directly, vk_compute_test .spv 1 dump on this GPU prints out[0..7] = 2863311530 4294901760 0 252641280 4294901760 252706815 4294967295 4042260480 for cs_w32_lds_b64_bitwise and 2863311530 3149642683 3435973836 3722304989 286331153 572662306 858993459 1145324612 for cs_w32_lds_wrxchg2, which are the expected words listed for them in run_gpu_tests.py (0xAAAAAAAA 0xFFFF0000 0x0 0x0F0F0000 ... and 0xAAAAAAAA 0xBBBBBBBB ... 0x44444444). Listing both names next to cs_w32_lds_subdword should let them run here; I did not try that edit. The full run_gpu_tests.py suite gives 154/219 passed, 63 skipped, with FAIL cs_fmt_int_narrow and cs_signed_zero_nan, the same 154 passes and two failures as main, plus the two new skips. test_run_gpu_tests.py passes (41 tests). AI-assisted. |
c82ebcb to
635592c
Compare
Claimed in the coordination issue as: #1745 (comment)
What and why
Two rows of the contract table were CPU-only because their instructions are awkward to assemble for gfx11, not because they are unreachable: llvm-mc 23 refuses the non-returning
ds_and_b64/ds_or_b64/ds_xor_b64and the pair-operand spelling ofds_wrxchg2_rtn_b32, but accepts the_rtn_forms andds_wrxchg2_rtn_b32 vdst, vaddr, data0, data1. The translated SPIR-V is device-independent, so the fixtures run on any GPU.cs_w32_lds_b64_bitwise.asm:ds_and_rtn_b64,ds_or_rtn_b64,ds_xor_rtn_b64chained on one LDS element. Checks thatM = M op DATAon both dwords and thatvdstgets the old value, then reads the final element back. Expected words derived from the ISA before running.cs_w32_lds_wrxchg2.asm:ds_wrxchg2_rtn_b32andds_wrxchg2st64_rtn_b32with explicitoffset0:0 offset1:1. Checks the two addresses (unit 4,unit 256for st64), the order of the old dwords invdst, and that the data lands at both addresses. Both offsets default to 0, so an instruction withoutoffset1:exchanges the same address twice; the fixture pins the explicit form.Registered in
runtime/test/shaders/check.py(wave32 lists, lane-mask skip list, expected words) andscripts/run_gpu_tests.py(runner tuple andcs_dump_wants). The twodocs/design.mdrows now carry the hardware result instead of "not GPU-verified".Tested
AMD Radeon RX 7600 (gfx1102), RADV Mesa 27.0.0-devel, Linux 7.3.3, llvm-mc 23.1.5.
run_gpu_tests.py --filter cs_w32_lds-> 3/3 passed, the two new fixtures and the existingcs_w32_lds_u8_d16.spirv-val; 177/191 passed, 14 skipped, 0 failed.ctest: 34/36. The two failures (vk_pipeline_check_cli,xdxr_build_check) are present on cleanorigin/mainat16282101with these changes stashed, so they are not from this PR.Checklist