Tests: check v_dot2_i32_i16/u32_u16 and v_dot8_i32_i4/u32_u4 on the GPU #1481
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1491"
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-24T16:52:33Z.
Add GPU test coverage for
v_dot2_i32_i16,v_dot2_u32_u16,v_dot8_i32_i4, andv_dot8_u32_u4(ENC_VOP3P) against pure-Rust references in bothwave64andwave32.What is in it
crates/xcl/src/gpu/recomp/tests.rs: addgpu_dot2_i16_u16_and_dot8_i4_u4covering unclamped 32-bit wraparound (including product-only overflow with zero accumulator),CLAMP=1positive/negative saturation (i32::MIN,i32::MAX,u32::MAX),OP_SEL/OP_SEL_HIhalf swap and broadcast onv_dot2_*, signed/unsigned 4-bit nibble boundaries across all 8 nibble positions onv_dot8_*, and SGPRSRC0/SRC2operands.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_dot2_i16_u16_and_dot8_i4_u4 --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 SKIPPED)cargo test --workspace -- --test-threads=4: 771 passed, 0 failed, 41 ignored (xcl --lib: 723 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 nnonno91 on 2026-11-24T16:58:10Z.
Independent GPU test of
cd4b097f58e3580656f4140241d5a483750558c0.Tested
XCL_ADAPTER.cargo build --workspace --lockedpassed.cargo test --locked -p xcl --lib -- gpu_dot2_i16_u16_and_dot8_i4_u4 --nocapture --test-threads=1passed with no skip on each adapter. The test exercised wave32 on NVIDIA and wave32 plus wave64 on AMD. On AMD,cargo test --locked -p xcl --lib -- gpu_wave32_program_in_wave64_hardware --nocapture --test-threads=1also passed withXCL_REQUIRE_GPU=wave64.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputon NVIDIA had 771 passed, 0 failed, and 41 ignored. The harness reports two GPU skips in that total,gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware, bothno wave64. The bundled test title passed.Not tested
Full workspace suite on the AMD adapter, retail titles, Wine, and release builds.
AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) ran the tests and drafted this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:29Z.
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!
Pull request closed