Repository navigation
Tests: verify direct DXIL vs HLSL GPU parity for 32-bit and 64-bit SALU ops - #2091
ramon-victor wants to merge 1 commit into
Conversation
PR #2091 Arc A770 test reportOn 2026-11-25, PR #2091 was open at Tested
& 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/aa483fcde098ccdf/out/gpu_dxil_salu_parity-aa483fcde098ccdf.exe' direct_dxil_salu_32bit_logic_bitops_and_bfe_parity --exact --nocapture --test-threads=1
& 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/aa483fcde098ccdf/out/gpu_dxil_salu_parity-aa483fcde098ccdf.exe' direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity --exact --nocapture --test-threads=1
The checked-in fixtures validated direct DXIL, executed it and HLSL compiled by DXC for Both wrappers logged mutex release. The final release was at 2026-11-25 05:10:37.4450846 CET. The exclusive Cargo target slot at Not testedThe other two SALU fixtures, the wider workspace suite, release builds, retail titles, native hardware wave64, and other adapters. AI useT3 Code / Codex (gpt-6.2-sol) ran the checked-in fixtures and wrote this report. |
|
Native 64-lane wave64 run on AMD, which this PR lists as not tested (the RTX 3070 ran wave64 split; the other report here is Arc). Tested: pass, head
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
A run with vkd3d-proton as the host D3D12, so both the direct DXIL and the HLSL → DXC output go through dxil-spirv and the NVIDIA Vulkan driver: all 4 parity tests pass, none skipped. Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent desktop NVIDIA verification of PR #2091 at head Environment
Targeted GPU parity tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --test gpu_dxil_salu_parity -- --nocapture (3 consecutive runs) |
4 passed; 0 failed; 0 ignored; 0 filtered out × 3 (0.56s, 0.30s, 0.31s, 0 skipped; live RTX 4060 wave32 + split-wave64 execution of direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity, direct_dxil_salu_overflow_carry_borrow_and_cmov_parity, direct_dxil_salu_32bit_logic_bitops_and_bfe_parity, and direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity) |
cargo build --release -p xcl |
Clean build (1m 41s initial --test compile + 0.08s incremental --release build, exit 0, 0 new warnings) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (cbc296ab65a2661a61e3e2da109134bcd5319f60, cached baseline on the same machine):
xcl-smoke v1
commit: cbc296ab65a2661a61e3e2da109134bcd5319f60
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1572 (PresentX 1572)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14509 MB
PR #2091 (fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2):
xcl-smoke v1
commit: fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1529 (PresentX 1529)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14501 MB
Limits of coverage
- This PR is test-only (
crates/xcl/tests/gpu_dxil_salu_parity.rs,0production-code changes); all 4 direct-DXIL vs. HLSL 32-bit and 64-bit SALU differential parity tests executed and passed3/3on desktop RTX 4060 acrosswave32andsplit-wave64(gpu_modes()omits native Wave64 on Wave32-only Ada). - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
merge-check claim |
|
merge-check |
|
merge-check |
|
Test-only: adds AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Add GPU differential parity tests between the direct RDNA2 → DXIL translator (
xcl::gpu::dxil::kernel::translate, validated withdxil.dll) and the HLSL + DXC path (xcl::gpu::recomp) forlower.rs32-bit and 64-bit scalar ALU instructions andSCCsemantics across wave32 and wave64 (split wave64 on wave32-only GPUs). Test-only change; no runtime files modified.What is in it
crates/xcl/tests/gpu_dxil_salu_parity.rs:direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity:S_LSHL1..4_ADD_U32(with carrySCC),S_PACK_{LL,LH,HH}_B32_B16(preservingSCC),S_MIN/MAX_{I,U}32(including tieSCC=0),S_ABSDIFF_I32,S_SEXT_I32_{I8,I16}, andS_MUL_HI_{U,I}32.direct_dxil_salu_overflow_carry_borrow_and_cmov_parity:S_ADD_I32/S_SUB_I32signed overflowSCC, 64-bitS_ADD_U32+S_ADDC_U32andS_SUB_U32+S_SUBB_U32carry/borrow chains, andS_CMOV_B32/S_CMOVK_I32/S_CMOV_B64underSCC=1vsSCC=0.direct_dxil_salu_32bit_logic_bitops_and_bfe_parity:S_{ANDN2,ORN2,NAND,NOR,XNOR}_B32,S_ASHR_I32,S_BITSET{0,1}_B32,S_BITCMP{0,1}_B32,S_BCNT{0,1}_I32_B32,S_FF{0,1}_I32_B32,S_FLBIT_I32{_B32,},S_BREV_B32,S_BFM_B32, andS_BFE_{U,I}32.direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity:S_LSHL_B64/S_LSHR_B64/S_ASHR_I64,S_BITSET{0,1}_B64andS_BITCMP{0,1}_B64on high-word bits,S_BCNT{0,1}_I32_B64,S_FF{0,1}_I32_B64,S_FLBIT_I32_{B64,I64},S_BREV_B64,S_BFM_B64, and cross-dwordS_BFE_{U,I}64.Tested
x86_64-pc-windows-msvc), DXC 1.8.2502.11 (Windows SDK 10.0.26100.0), debug build.cargo test -p xcl --test gpu_dxil_salu_parity -- --nocapture: 4 passed, 0 failed, 0 ignored (0 SKIPPED; each test ran both wave32 and split wave64 through both Direct DXIL and HLSL+DXC)..\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4) on headfb0ecdc: 1158 passed, 0 failed, 46 ignored (24 SKIPPED GPU tests: 20no wave64, 3per-lane form#1426, 1no heap windows).Not tested
AI use