Tests: check 64/96/128-bit and paired LDS loads and stores on the GPU #1168
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1177"
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 jesuarchive on 2026-11-24T12:53:39Z.
ds_read/write_b64/b96/b128,ds_read2/write2_b64and the four*2st64*forms are translated (emit.rs, therwtable of the DS emitter) but had no GPU test. This adds one, test-only.What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_ds_wide_and_paired_loads_stores. It stores with each form and reads the data back with another width, from the neighbouring lane afters_barrier, and into a destination that overlaps the address register (ds_read_b128 v[6:9], v6). It checks which dword lands at which byte address:OFFSETfor the single forms,OFFSET0/OFFSET1times 8, 256 or 512 bytes for the paired ones. Runs on every adapter throughgpu_waves().Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 from the Windows SDK; debug.cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware, no wave64).main47efa2eon the same machine: 741 / 0 / 41, the same two skipped.cargo test -p xcl --lib -- gpu_ds_wide_and_paired_loads_stores --nocapture --test-threads=1: 1 passed, not skipped (wave32 pass only on this adapter).emit.rs, reverted: theds_write2_b64stride 4 instead of 8, theds_read2st64_b32stride 64 instead of 256,ds_read_b96reading two dwords. The test fails on each, naming the instruction.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by towiice on 2026-11-24T13:08:26Z.
Review: COMMENTED
Tested:
01b62ad4), toolchainstable-x86_64-pc-windows-gnullvm(llvm-mingw 23.1.6), debug build.cargo test -p xcl --lib gpu_ds_wide_and_paired_loads_stores -- --nocapturegpu::recomp::tests::gpu_ds_wide_and_paired_loads_storespasses cleanly on Turing wave32 hardware without skips.Not tested: full workspace suite, release builds, AMD/Intel GPUs, retail titles (test-only PR).
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:06:13Z.
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
cargo test -p xcl --lib wide_and_paired: 1 passed, 0 failed —gpu_ds_wide_and_paired_loads_storescovers 64/96/128-bit and paired LDS accesses on real hardware.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Imported from ivall/xcl. Originally posted by bjarngard on 2026-11-24T13:23:59Z.
Test report for head
24250f2(AMD, native wave64)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:gpu_ds_wide_and_paired_loads_storespassedgpu_waves(), so on this adapter both the wave64 and the wave32 pass ranNot tested: Intel, Wine.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
title_memory_budget_mbis 13,824 MB regardless of the adapter's memory #1327Imported from ivall/xcl. Originally posted by Mischief8713 on 2026-11-24T15:55:13Z.
GPU run of
24250f2on Windows (NVIDIA GTX 1660 Ti, Turing): 699 passed, 0 failed; the new test passesTested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64)mainat930e8b4on the same machine: lib 707 passed, 0 failed, 21 ignored;e2e3 passedmain(930e8b4). It was run as it is.gpu::recomp::tests::gpu_ds_wide_and_paired_loads_storesran on the GPU and passed. Earlier reports are both RTX 3060 Ti.Not tested
scripts/smoke.ps1run, so no regression runmainAI use
upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
upstream-sync referenced this pull request2026-11-25 10:09:30 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:00:19Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:00:12Z.
Triage (#1607) – head
24250f2#544 (opened first) tests the same wide and paired DS ops (
DS_WRITE/READ_B96/B128,DS_WRITE2_B64,DS_*2ST64_*) among many others in a new 1233-line integration test; this PR is a 76-line per-instruction test inrecomp/tests.rsusinggpu_waves/run_wave. #1178 (d16 LDS ops) is the companion test, not a duplicate. Main exercises only the st64 forms (gpu_permlane16_wqm_and_lds_stride64).No problems found in the diff; the LDS regions and offsets do not overlap.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.