Tests: integer-to-float conversions on the GPU #654
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!654
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-654"
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?
@acaracargo on GitHub · 2026-11-24 02:54 UTC · original
acaracargo:fork/cvt-to-float-gpu-tests→main· +58 −0 · 1 files · 1 commits · openAdds GPU coverage for
v_cvt_f32_i32,v_cvt_f32_u32,v_cvt_f32_ubyte0..3andv_cvt_f64_i32/u32/f32. Previously, onlyv_cvt_f32_ubyte1was covered by a GPU test.The 16 inputs cover:
The reference uses Rust's
asconversion, which also rounds to nearest even. An f32 denormal is deliberately excluded fromv_cvt_f64_f32, since its preservation depends on the denormal mode and this driver flushes it to zero.#515 covers
v_cvt_f16_u16/i16, which this test does not use.What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_int_to_float_conversions.Tested
x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug.cargo test --workspace -- --test-threads=4on6d171e3: 685 passed, 0 failed, 41 ignored (main9ce2070: 684 / 0 / 41).gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).(int)cast fromv_cvt_f64_i32or reading the wrong byte forubyte3causes the test to fail (checked locally, reverted).Regression run
Not tested
AI use
@MonkeyPython on GitHub · 2026-11-24 03:05 UTC · original
AMD / native-wave64 data point (the "Not tested" axis):
gpu_int_to_float_conversionspasses on an AMD Raphael iGPU (RDNA2, native wave64) and on NVIDIA wave32.Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB; adapters: AMD Radeon(TM) Graphics (Raphael iGPU, wave64) and RTX 3080 Ti 12 GB (driver 621.01, wave32-only). PR head
6d171e3, release.Runs (
cargo test -p xcl --release --lib gpu_int_to_float_conversions):XCL_ADAPTER=Radeon(selects the iGPU; the selector errors on no match, so a pass means it ran there): 1 passed / 0 failed, 0.25 s.The cvt rounding paths agree on native wave64 and on the wave32 split path.
Not tested: discrete AMD GPUs, other titles.
AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from their logs; a human reviews it before posting. No code changes.
@MesshM on GitHub · 2026-11-24 03:18 UTC · original
Test run of
6d171e32577340e3224fc5d7803d3f673aa9232fon AMD RDNA4 (native wave64). I merged it onto currentmain63cdc25locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 693 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 653 passed, 0 failed, 21 ignoredSKIPPED;gpu_int_to_float_conversionspasses.Review: i32 / u32 → f32 round to nearest even,
v_cvt_f32_ubyteNtake byte N, the f64 conversions are exact, and NaN stays NaN throughv_cvt_f64_f32; the references follow the ISA. This adds RDNA4 next to the RDNA2 iGPU result above.Not tested: no retail title (not needed for a test-only change), release build; the PR's head on its old base was not run, only its merge onto
main.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@lordon1a on GitHub · 2026-11-24 03:38 UTC · original
Independent GPU test report on
6d171e3:Tested
616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200),rustc 1.100.0(x86_64-pc-windows-gnullvm), debug build, DXC1.9.2609.5(01b62ad4)cargo test -p xcl --lib gpu_int_to_float_conversions -- --nocapture0.76s(gpu::recomp::tests::gpu_int_to_float_conversionsok)Not tested
AI use
6d171e3in a detached worktree, audited the diff, ran the GPU test, and posted this report.@JJAutoCompare on GitHub · 2026-11-25 06:30 UTC · original
Empirical test report (
6d171e32)Hardware / environment
6d171e32577340e3224fc5d7803d3f673aa9232f.XCL_ADAPTER=A770), AMD Ryzen 7 3800X 8-Core Processor, Windows NT10.0.26200.0(build 26200).1.100.0 (0ef1bc386 2026-11-09),x86_64-pc-windows-msvc. DXC1.9.2609.5(01b62ad4), DXIL1.9.2609.5. Unoptimized Cargo test profile with incremental compilation and debug info disabled.Commands and results
cargo test -p xcl --lib --no-run(outside the Arc lock) built the library test executable and exited0. This step only compiled the tests.cmd.exe /d /c "$testExe gpu::recomp::tests::gpu_int_to_float_conversions --exact --nocapture --test-threads=1 > $testLog 2>&1"ran the Cargo-built executable insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. The wrapper acquired and released the Arc lock and returned the test's exit code101.SKIPPEDin the combined test output.Observed behavior
The recompiler runner reported
CreateComputePipelineState: The parameter is incorrect. (0x80070057). The test panicked when it unwrapped the runner error, before it could compare the GPU conversion outputs with Rust's reference values. This run produced no conversion correctness result.Not tested
Full GPU workspace suite and game smoke runs omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr654-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 12:31 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.