Repository navigation
Tests: check f32 and f16 transcendental VALU ops on the GPU - #1169
microwave805 wants to merge 1 commit into
Conversation
Add GPU coverage for 11 translated RDNA2 transcendental ops with no existing GPU tests: v_exp_f32, v_log_f32, v_sqrt_f32, v_rsq_f32, v_rcp_f32, v_rcp_iflag_f32, v_exp_f16, v_log_f16, v_sqrt_f16, v_rsq_f16 and v_rcp_f16. Checks VOP1 and VOP3 forms (ABS, NEG, CLAMP, high-half OP_SEL) across four exact power-of-two lane patterns and verifies the untouched half of each f16 VDST is preserved. Assisted-by: Antigravity (Gemini 4 Neon)
towiice
left a comment
There was a problem hiding this comment.
Tested:
- Hardware: NVIDIA GeForce GTX 1650 SUPER (Turing TU116, 4 GB VRAM, wave32, driver 610.88), Windows 11 x64 (26H2 / build 26300), DXC v1.9.2609 (
01b62ad4), toolchainstable-x86_64-pc-windows-gnullvm(llvm-mingw 23.1.6), debug build. - Test command:
cargo test -p xcl --lib gpu_f32_and_f16_transcendentals -- --nocapture - Result: 1 passed, 0 failed (0.61 s) —
gpu::recomp::tests::gpu_f32_and_f16_transcendentalspasses cleanly on Turing wave32 hardware without skips.
Not tested: full workspace suite, release builds, AMD/Intel GPUs, retail titles (test-only PR).
|
Test report for head Tested
Not tested: retail titles, RDNA3/RDNA4. 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. |
|
A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler. Tested
Not tested
AI use
|
|
Tested PR #1169 stayed open at
Not tested Native wave64 on this host, direct DXIL, special-value inputs, other fixtures, the workspace suite, and retail smoke runs. AI use T3 Code / Codex ( |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Adds GPU tests for 11 translated RDNA2 transcendental VALU instructions that currently have no GPU coverage in
crates/xcl/src/gpu/recomp/tests.rs:v_exp_f32,v_log_f32,v_sqrt_f32,v_rsq_f32,v_rcp_f32,v_rcp_iflag_f32,v_exp_f16,v_log_f16,v_sqrt_f16,v_rsq_f16, andv_rcp_f16. (v_sin_*/v_cos_*are intentionally left out because #818 changes their range reduction.)Uses four exact power-of-two lane patterns and checks both VOP1 and VOP3 encodings (
ABS,NEG,CLAMP, high-halfOP_SEL), verifying that the untouched half of every f16vdstis preserved bit-for-bit.What is in it
crates/xcl/src/gpu/recomp/tests.rs: addgpu_f32_and_f16_transcendentalscovering all 11 instructions on the GPU.Tested
cargo test -p xcl --lib gpu_f32_and_f16_transcendentals -- --nocapture: 1 passed, 0 failed.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 742 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 the GPU test and this PR description, and ran the test commands above.