Tests: cover permlane16, WQM, DS stride64, mulhi, i24, and u64 shifts #1617
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1617
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1617/head"
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?
@piyonchu on GitHub · 2026-11-24 18:16 UTC · original
piyonchu:tests/gpu-permlane-wqm-lds-math→main· +189 −0 · 1 files · 1 commits · merged 2026-11-25 02:02 UTCTests only — adds two GPU hardware execution tests to
crates/xcl/src/gpu/recomp/tests.rs(ce22d27, rebased ontomain8f5fca5) covering previously untested RDNA2 lane-permute (FI/BOUND_CTRL), scalar whole-quad mask, stride-64 LDS dual reads/writes, scalar sign extension/abs/mulhi, 24-bit integer multiply/mad, 64-bit vector right shifts, and chained carry-borrow subtraction instructions.What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_permlane16_wqm_and_lds_stride64: runsS_WQM_B32(non-zero and zero SCC),S_WQM_B64,DS_WRITE2ST64_B32/DS_READ2ST64_B32,DS_WRITE2ST64_B64/DS_READ2ST64_B64,V_PERMLANE16_B32(all threeFI/BOUND_CTRLinactive-source behaviors under maskedEXEC), andV_PERMLANEX16_B32across 64 lanes on the GPU.gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts: runsS_SEXT_I32_I8,S_SEXT_I32_I16,S_ABS_I32,S_MUL_HI_U32,S_MUL_HI_I32,V_MUL_HI_U32,V_MUL_HI_I32,V_MUL_I32_I24,V_MUL_HI_I32_I24,V_MAD_I32_I24(with non-zero upper 8 bits),V_LSHRREV_B64,V_ASHRREV_I64,V_SUB_CO_CI_U32(VOP3B), andV_SUBREV_CO_CI_U32(VOP2) on the GPU.Tested
616.56), Windows 11, DXC/DXIL1.8.2502.11(10.0.26100.0),rustc 1.100.0, debug build at commitce22d2744bbaea51948602f76af11aac82befbd3:cargo test -p xcl --lib gpu_permlane16_wqm_and_lds_stride64: 1 passed, 0 failed (0.51s).cargo test -p xcl --lib gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts: 1 passed, 0 failed (0.47s).cargo test --workspace -- --test-threads=4: 1104 passed, 0 failed, 46 ignored.SKIPPEDGPU tests on this adapter (no wave64 / no heap windows / no Windows Developer Mode / refused wave32 per-lane f16 #1426 forms):gpu::recomp::lower::tests::{a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu},gpu::recomp::lower_dxil::tests::{a_per_lane_2d_or_3d_group_runs_on_the_gpu,f16_programs_on_the_gpu,const_and_null_mask_operands_agree_with_hlsl_on_the_gpu,f32_programs_on_the_gpu,integer_programs_on_the_gpu,f64_programs_on_the_gpu},gpu::recomp::tests::{gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware},shaders::tests::pso_measurement_compiles_an_exact_synthetic_record,heap_window_out_of_memory_falls_back_to_the_switch_form.python scripts/pr_check.py --localandgit diff --check upstream/main..HEAD: passed.Regression run
crates/xcl/src/gpu/recomp/tests.rs(only new GPU instruction tests added; no runtime code changed).Not tested
AI use
main, ran the local workspace test suite, and drafted this PR description.@DavidM1911 on GitHub · 2026-11-24 20:37 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
@DarkPanda69 on GitHub · 2026-11-24 18:27 UTC · original · edited 2026-11-25 01:44 UTC
AMD result with native 64-lane waves, which this PR lists as not tested. Updated for head
ce22d27(first run was one75cd90, same result).Tested: pass, head
ce22d27applied onmain3da2abb, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --lib -- gpu:: --test-threads=4:gpu_permlane16_wqm_and_lds_stride64andgpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shiftsok. The 2 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1and_3, which fail the same way onmainwithout this PR on this card.Not tested: Intel Arc; release build; the whole workspace suite.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@DavidM1911 on GitHub · 2026-11-26 05:58 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin