Tests: cover SOPK, scalar bit reverse/ff0, f32 unary math, and f16 integer cvt on GPU #1672
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!1672
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1672"
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?
@piyonchu on GitHub · 2026-11-24 19:07 UTC · original
piyonchu:tests/gpu-sopk-f32-unary-cvt16→main· +203 −0 · 1 files · 2 commits · openTests only — adds GPU execution coverage in
crates/xcl/src/gpu/recomp/tests.rsfor previously untested RDNA2SOPK, scalar bit-manipulation,f32unary math/rounding, andf16integer conversion instructions (869b5cf,0c4e5c9, rebased ontomainb49be18).What is in it
crates/xcl/src/gpu/recomp/tests.rs(869b5cf): addsgpu_sopk_and_scalar_bit_reverse_zero_scan(S_ADDK_I32,S_MULK_I32, all 12S_CMPK_{EQ,LG,LT,LE,GT,GE}_{I32,U32},S_BREV_B32,S_BREV_B64,S_FF0_I32_B32,S_FF0_I32_B64,S_FLBIT_I32_B32,S_BFM_B32,S_BITSET0_B32) andgpu_f32_unary_and_cvt_f16_int_ops(V_FLOOR_F32,V_CEIL_F32,V_TRUNC_F32,V_RNDNE_F32,V_RCP_F32,V_RSQ_F32,V_SQRT_F32,V_LOG_F32,V_EXP_F32,V_SIN_F32,V_COS_F32,V_CVT_{F16_U16,F16_I16,U16_F16,I16_F16}).crates/xcl/src/gpu/recomp/tests.rs(0c4e5c9): adds high-bit (0x8000_0000vs1) and zero-extended0xFFFF(65535) immediate cases acrossS_CMPK_*_U32.Tested
1.8.2502.11(10.0.26100.0), debug build at commit0c4e5c903d1415cc689d93be88ea0dc33f1ceeed:cargo test --workspace -- --test-threads=4 --nocapture: 1437 passed, 0 failed, 47 ignored across 37 test binaries (217uniqueSKIPPED ...cases on this host due to missing wave64 / wave32 / mesh / debug layer / heap window / Windows Developer Mode capabilities).cargo test -p xcl --lib gpu_sopk_and_scalar_bit_reverse_zero_scan: 1 passed, 0 failed (SKIPPED ...: no wave64).cargo test -p xcl --lib gpu_f32_unary_and_cvt_f16_int_ops: 1 passed, 0 failed (SKIPPED ...: no wave64).python scripts/pr_check.py --localandgit diff --check upstream/main..HEAD: passed.Not tested
gpu_sopk_and_scalar_bit_reverse_zero_scanandgpu_f32_unary_and_cvt_f16_int_opsreportedSKIPPED ...: no wave64in this environment; hardware execution previously ran on RTX 4060 before rebasing).AI use
main, ran the local workspace test suite, and drafted this PR description.@mantavisual on GitHub · 2026-11-24 20:03 UTC · original
Test report for
ced583d4b8a9450395c871f464c965b4d7bfdbf4.Tested
cargo test -p xcl --lib --locked <name>: both new tests pass.Do the tests notice a broken translator? One break is not noticed:
S_CMPKcompares done as signed. The U32 cases use s23 = 500 and immediates 499 to 501, where both agree. AddingS_CMPK_EQ_U32with 65535 /0xFFFFandS_CMPK_GT_U32with0x80000000/ 1 (both expect 1) passes normally and fails with the break.Four other breaks were caught.
Not tested: the whole suite, AMD, native wave64, retail title.
AI use: Claude Code (Claude Opus 5.5) ran this on my machine, wrote the report and posted it for me.
@piyonchu on GitHub · 2026-11-24 20:34 UTC · original
Thanks for the mutation check on RTX 4060, @mantavisual! Added high-bit (
0x8000_0000vs1) and zero-extended0xFFFF(65535) cases across all sixS_CMPK_*_U32operations (EQ/LG/LT/LE/GT/GE) ingpu_sopk_and_scalar_bit_reverse_zero_scanso signed comparison or sign-extendingSIMM16cannot pass. Re-verifiedgpu_sopk_and_scalar_bit_reverse_zero_scan(1 passed; 0 failed) andgpu_f32_unary_and_cvt_f16_int_ops(1 passed; 0 failed) on RTX 4060.@DavidM1911 on GitHub · 2026-11-24 21:26 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
@raylitebull on GitHub · 2026-11-25 02:03 UTC · original
CI \Build and test\ and \PR description\ passed on \235a39. With #1617\ now merged at the end of
ecomp/tests.rs, please rebase onto \main\ and obtain an AMD GPU pass on the rebased head.
@piyonchu on GitHub · 2026-11-25 02:29 UTC · original
Rebased onto
main(cbc296a, with#1617merged) at06649f0and re-ran the full GPU/workspace test suite on RTX 4060 Laptop GPU (1156 passed, 0 failed, 46 ignored, both new tests passing in0.28s/0.26s).Updated the PR description with the new head and counts. I do not have AMD GPU hardware locally, so native-wave64 AMD validation on
06649f0remains untested on my end.@JJAutoCompare on GitHub · 2026-11-25 04:26 UTC · original
Tested
Independent Arc A770 verification of open PR #1672 at
06649f040fe082ec94b005fe649ee6f1e52c8fa0. The reused checkout was clean and detached at that SHA before and after testing.STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust and Cargo 1.100.0 x86_64-pc-windows-msvc. The fixture logged DXC/DXIL 1.9.2609.5. Used the unoptimized test profile, two Cargo jobs, incremental compilation and debug info disabled, and private TEMP/TMP.
The prebuild exited 0 outside the mutex (43.07 s). The fixture reported 1 passed, 0 failed, 0 ignored, 0 GPU skips, 1,125 filtered out, 0.76 s. The native executable and wrapper exited 0. The wrapper logged lock release.
HLSL/DXC checked all 64 logical lanes in split wave64. The runner's selection and the same-host A770 capability range of 8–32 hardware lanes establish that the program used two hardware wave32s. All 1,216 assertions passed, covering FP32 rounding and unary math, FP16 conversions to and from signed and unsigned integers, and upper-half preservation. Conversion checks included truncation, saturation, and NaN-to-zero.
Not tested
Native wave64, standalone wave32 mode, direct DXIL, other fixtures or GPUs, the workspace suite, and retail titles.
AI use
T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixture, verified the logs, and wrote the test report.
@DavidM1911 on GitHub · 2026-11-26 06:07 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.@piyonchu on GitHub · 2026-11-26 09:38 UTC · original
@DavidM1911 Thanks for checking —
#1672is already rebased directly onto currentmain(b49be18) at0c4e5c9(0commits behindmain), showsMERGEABLE/CLEANon GitHub, and merges cleanly withupstream/main(git merge-tree --write-treeclean,Build and testandPR descriptionpassing). Could your test runner be merging against a cached branch ref before fetching0c4e5c9?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.