Tests: check per-lane Direct DXIL wave, mask, and far-jump parity on GPU #1843
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!1843
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1843"
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 21:42 UTC · original
microwave805:tests-gpu-per-lane-parity→main· +258 −0 · 1 files · 1 commits · openAdd GPU parity and API tests for the per-lane Direct DXIL backend (
recomp::lower_dxil) covering features that previously had only CPU-interpreter or no direct tests (S_WQM,S_CSELECT, scalar carry/borrow chains, far jumps,compute_code,compute_split, andsurvey_compute_code).What is in it
crates/xcl/tests/gpu_per_lane_parity.rs:per_lane_wqm_and_cselect_match_hlsl_on_gpu: validates and runsS_WQM_B32+S_CSELECT_B32+V_CNDMASK_B32(wave32 vialower_dxil::kernel) andS_WQM_B64+S_CSELECT_B64+V_CNDMASK_B32across both 32-lane halves (split wave64 vialower_dxil::kernel_split), comparing every SGPR/VGPR against the HLSL+DXC path.per_lane_scalar_carry_borrow_and_far_jump_match_hlsl_on_gpu: validates and runs chainedS_ADD_U32/S_ADDC_U32+S_SUB_U32/S_SUBB_U32and a far jump (S_GETPC_B64+S_ADD_U32+S_ADDC_U32+S_SETPC_B64) in both wave32 and split wave64 against HLSL+DXC.per_lane_compute_code_split_and_survey: checkslower_dxil::survey_compute_codeon valid and undecodable bytes, then validates and dispatches a compute shader with a far jump throughlower_dxil::compute_code(wave32) andlower_dxil::compute_split(split wave64, cross-checked against HLSL+DXC).Tested
stable-x86_64-pc-windows-msvc, debug)af24810(based onmainc4d37be):cargo test -p xcl --test gpu_per_lane_parity -- --nocapture: 3 passed, 0 failed, 0 ignored (0 skipped).\scripts\test.ps1(cargo build --workspace && cargo test --workspace -- --test-threads=4): 962 passed, 0 failed, 43 ignoredgpu_per_lane_parity): 18×no wave64(lower::tests,lower_dxil::tests,recomp::tests), 3×per-lane form: refused(lower_dxil::tests:f16 arithmetic,f16 packed,f32 conversions), 1×no heap windows(heap_window_out_of_memory_falls_back_to_the_switch_form), 1×cannot disable the driver cache(shaders::tests::pso_measurement_compiles_an_exact_synthetic_record)Regression run
crates/xcl/tests/gpu_per_lane_parity.rs(no runtime or build-input files changed).Not tested
AI use
crates/xcl/src/gpu/recomp/lower.rsandlower_dxil.rs, wrotecrates/xcl/tests/gpu_per_lane_parity.rsand this PR description, and ran the verification commands above.@DarkPanda69 on GitHub · 2026-11-24 22:40 UTC · original
AMD run with native 64-lane waves, which this PR lists as not tested, plus an NVIDIA one.
Tested: pass, head
af24810applied onmain689f2db, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --test gpu_per_lane_parity -- --test-threads=4withXCL_ADAPTERset to each GPU:cargo test -p xcl --lib -- gpu::recomp --test-threads=4with this PR applied: 261 passed, 0 failed, 18 ignored on both; the SKIPPED lines are the same as onmain.Not tested: Intel; Linux / Wine; the whole workspace suite.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 01:15 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:21 UTC · original
Tested
On PR #1843 head
af2481013ed9d2a09ce778a71cf8200b2e887838in a clean detached checkout on STOR-WINLAB. Intel Arc A770 (driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 Enterprise Evaluation 26200.9974, Rust and Cargo 1.100.0 (x86_64-pc-windows-msvc, unoptimized test profile), DXC and DXIL 1.9.2609.5.Built with
cargo test -p xcl --locked --test gpu_per_lane_parity --no-run. WithXCL_ADAPTER=A770, ran the generated binary serially under the Arc lock:2 passed, 0 failed, 0 ignored, 0 explicit GPU skips. Each test passed its Direct DXIL vs. HLSL+DXC register comparisons and expected-value assertions in both modes.
Not tested
Native hardware wave64, other adapters, the compute/survey fixture (including undecodable input), parallel test execution, the full workspace suite, retail titles, and Linux/Wine.
AI use
T3 Code / Codex (gpt-6.2-sol) ran the checked-in tests and wrote this report.
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.