Tests: check f32 and f16 transcendental VALU ops on the GPU #1169
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!1169
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1169"
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:49 UTC · original
microwave805:gpu-tests-transcendentals→main· +88 −0 · 1 files · 1 commits · openAdds 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.@bjarngard on GitHub · 2026-11-24 13:24 UTC · original
Test report for head
e983005(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_f32_and_f16_transcendentalspassedNot 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.
@JoaoPauluu on GitHub · 2026-11-24 13:45 UTC · original
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
x86_64-pc-windows-gnu.e983005as it is (based on47efa2e), no uncommitted changes. The lib test binary runs under Wine.gpu::recomp::tests::gpu_f32_and_f16_transcendentals(--exact, one process): ok, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 04:56 UTC · original
Tested
PR #1169 stayed open at
e9830058b6e16630039f18c99901d3c68f1fba1b. The worktree was clean and detached at that SHA before and after the run.STOR-WINLAB ran native Windows 11 Enterprise Evaluation 25H2 x64 build 26200.9974, with a Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0
x86_64-pc-windows-msvc, and DXC/DXIL 1.9.2609.5.cargo test --locked -p xcl --lib --no-runcompleted outside the GPU lock in 30.18 s. The build used two jobs, incremental compilation disabled, dev/test debuginfo set to0, and privateTEMPandTMPatL:/XclTooling/pr1169.A fresh PowerShell child used process-scoped
RemoteSignedto invoke& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { ... }withXCL_ADAPTER=A770,XCL_DIRECT_DXIL=0, andXCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64. The only fixture command was:1 passed, 0 failed, 0 ignored, 0 capability skips, 719 filtered out in 0.26 s. All 1,408 assertions passed across 64 logical lanes in split wave64 on 32-lane hardware. These covered 512 FP32 result checks, 448 FP16 result checks, and 448 bit-exact checks that the untouched FP16 register half was preserved. The fixture checks exp2, log2, sqrt, reciprocal sqrt, reciprocal, FP32
RCP_IFLAGon finite negative inputs, and selected ABS, NEG, CLAMP, and FP16 half-selection cases.Build, native fixture, and wrapper exits were each
0. The wrapper logged the Arc lock release.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 (
gpt-6.2-sol) ran the verification and wrote this report.@DavidM1911 on GitHub · 2026-11-25 07:46 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.