Tests: check packed f16 VOP3P, v_dot2c_f32_f16, v_pack_b32_f16 and f16 FMA ops on the GPU #1158
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!1158
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1158"
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?
@microwave805 on GitHub · 2026-11-24 12:38 UTC · original
microwave805:gpu-tests-packed-f16→main· +109 −0 · 1 files · 1 commits · openAdds GPU tests for 8 translated RDNA2 f16 instructions that currently have no GPU coverage in
crates/xcl/src/gpu/recomp/tests.rs:v_pk_fma_f16,v_pk_min_f16,v_pk_max_f16,v_dot2c_f32_f16,v_pack_b32_f16,v_fmac_f16,v_fmamk_f16, andv_fmaak_f16.All inputs are exact binary16 values across four distinct edge-case lanes so results are exact across rounding modes and hardware drivers.
What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_packed_f16_fma_min_max_dot2c_and_pack: checksv_pk_fma_f16,v_pk_min_f16, andv_pk_max_f16(plain, swappedOP_SEL/OP_SEL_HI/OP_SEL_HI_2,NEG/NEG_HI, andCLAMP), two consecutivev_dot2c_f32_f16accumulations into the samevdst, and all fourOP_SEL[1:0]pairings ofv_pack_b32_f16.gpu_f16_fmac_fmamk_fmaak: checks VOP2v_fmac_f16, VOP3v_fmac_f16(OP_SEL=0b1010,CLAMP=1),v_fmamk_f16, andv_fmaak_f16(verifying upper-16-bit literal masking and preservation of the untouched half ofvdst).Tested
cargo test -p xcl --lib gpu_packed_f16 -- --nocapture: 1 passed, 0 failedcargo test -p xcl --lib gpu_f16_fmac -- --nocapture: 1 passed, 0 failed.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 743 passed, 0 failed, 41 ignoredgpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64)python -I scripts/pr_check.py --localon this PR's description and changed files:description okRegression run
crates/xcl/src/gpu/recomp/tests.rs(test-only).Not tested
AI use
emit.rs/tests.rs, wrote both GPU tests and this PR description, and ran the test commands above.@DavidM1911 on GitHub · 2026-11-24 12:46 UTC · original
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 packed_f16: 1 passed, 0 failed —gpu_packed_f16_fma_min_max_dot2c_and_packcovers the packed-f16 VOP3P/FMA/dot2c/pack ops on real hardware.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@TobiasFornell on GitHub · 2026-11-24 12:57 UTC · original
AMD / Linux data point (the PR's runs were NVIDIA with no wave64).
Tested: RX 9070 XT (RDNA4, native wave64), Mesa RADV 26.3.1, CachyOS (kernel 7.3), Proton Experimental
11.0-20261112Wine, vkd3d-proton v3.1 (scripts/linuxbuild), DXC 1.9.2609,x86_64-pc-windows-msvccross-build, release. Headaa94ba9merged ontomain47efa2e(clean), together with #1144.gpu_packed_f16_fma_min_max_dot2c_and_pack,gpu_f16_fmac_fmamk_fmaak,gpu_f16_defaults_to_round_to_nearest_even: pass.no wave64on NVIDIA (gpu_wave32_program_in_wave64_hardware,gpu_geometry_wave32_prefix_count_over_a_mask) run and pass here.Testing and write-up assisted by Claude Code (Claude Opus 5.5); runs on my own hardware, checked by me.
@0xTehuti on GitHub · 2026-11-24 12:59 UTC · original
Test report on NVIDIA GeForce RTX 2070 SUPER (Turing, wave32)
Commit tested
aa94ba9d343d99aa06f757123cf7e5e38b38ff2f(PR #1158 head)Tested
cargo test -p xcl --lib recomp:190 passed; 0 failed; 18 ignored; 0 measured; 513 filtered out; finished in 6.63sgpu_packed_f16_fma_min_max_dot2c_and_pack:1 passed; 0 failed(0.26s)gpu_f16_fmac_fmamk_fmaak:1 passed; 0 failed(0.29s)v_pk_fma_f16,v_pk_min_f16,v_pk_max_f16,v_dot2c_f32_f16,v_pack_b32_f16,v_fmac_f16,v_fmamk_f16,v_fmaak_f16) compile and execute cleanly on Turing hardware with DXIL 1.8.OP_SEL,OP_SEL_HI,NEG,CLAMP) and binary16 lane pattern preservation pass without issues.Not tested
XCL_SAMPLE_*unset).AI use
@JJAutoCompare on GitHub · 2026-11-25 04:58 UTC · original
Tested
Clean detached PR head
aa94ba9d343d99aa06f757123cf7e5e38b38ff2fon STOR-WINLAB. Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 x86_64-pc-windows-msvc, DXC/DXIL 1.9.2609.5. Unoptimized test profile.cargo test --locked -p xcl --lib --no-runran outside the shared GPU mutex and exited 0 in 31.05 s. WithXCL_ADAPTER=A770and the specifiedXCL_DXC_DIR, ran both prebuilt fixtures underInvoke-ArcTest.ps1 -Test:2 passed, 0 failed, 0 ignored, 0 skipped, with 720 filtered out per invocation. Both fixtures and wrapper exited 0. Both used HLSL/DXC with split wave64. The first passed 704 lane-output checks in 2.02 s, including packed FMA/min/max, consecutive dot accumulations and all four pack selectors. The second passed 256 checks in 0.30 s, including FMAC, FMAMK, FMAAK, literal masking and preservation of the untouched destination halfword.
Not tested
Standalone wave32, native wave64, direct DXIL, other adapters, release builds, the workspace suite, and retail smoke.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the fixtures and wrote this report.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.