Repository navigation
Tests: fix three expectations behind the split wave64 failures on main (#3093) - #3163
Closed
tiagonleal wants to merge 3 commits into
Closed
tiagonleal wants to merge 3 commits into
tiagonleal wants to merge 3 commits into
Conversation
The split parity fixture from 2b39525 looked for ResBind { 0, 2, 2, 1 }, but the operands are { lower, upper, space, class }: the title memory is u2 in space 0, so no piece ever matched and the three dispatch_chain GPU tests failed (xcl-dev#3093). Disassembly on an RTX 5070 Ti shows { 2, 2, 0, 1 } in 2 of 4 pieces; both assertions now hold unchanged.
dbe6b30 makes the direct path refuse real LDS access in split wave64 on purpose; the runtime then falls back to HLSL (pso.rs, 'direct DXIL fallback'). Two GPU tests still unwrapped the direct translation and failed on wave32 GPUs (xcl-dev#3093). They now assert that refusal when the program is split and run the direct backend only when it is native wave64.
With one window the direct path has no window check (Lw::windowed is mems.len() > 1), so an outside-UMA address reads window 0. The test from 3e2a48e already expects that for the scalar read but expected 0 for the vector one and failed on native and split wave64 (xcl-dev#3093).
Contributor
Author
|
Closing as a duplicate: #3150 (KOLESNiii) fixes the same three test expectations and was merged into AI use: Claude Code wrote this comment (Claude Fable 5.2). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3093 (group 2). Test-only. On
maine429936csix GPU tests fail since #2959 on NVIDIA (wave32) and AMD. On an RTX 5070 Ti all six come from the tests' own expectations, and none from the runtime. One commit per cause:What is in it
split.rs(test module): the threedispatch_chain_*tests search the disassembly forResBind { i32 0, i32 2, i32 2, i8 1 }. Title memory israw_uav(2 + k, 0)(kernel.rs), which disassembles as{ i32 2, i32 2, i32 0, i8 1 }, so the string never matched. The pruning that 2b39525 added works: the binding is in 2 of the 4 pieces. One string changes; both assertions stay.tests.rs:gpu_compute_mode_dispatch_abiandgpu_float_cas_uses_ieee_equalityunwrapped the direct DXIL translation. dbe6b30 makes the direct path refuse split wave64 LDS on purpose (its own testthe_runtime_path_leaves_split_wave64_lds_to_hlslchecks that) and production falls back to HLSL on that error (pso.rs). When the program is split, the tests now assert that exact refusal and run the HLSL backend only. On native wave64 the direct path must still succeed, as before.heap_window_tests.rs:gpu_heap_flat_reads_match_guarded_and_root_outputexpected 0 for a vector read outside the UMA with one window. With one window there is no window check (Lw::windowed()ismems.len() > 1), so the address aliases window 0, and the test already expects that for its scalar read. The vector lane now expects the same.Tested
maine429936c: the six fail (0 passed; 6 failed). With this PR:cargo test -p xcl --lib -- gpu::dxil::module::split dispatch_abi float_cas heap_flat --test-threads=1: 14 passed, 0 failed, noSKIPPEDline, also withXCL_DIRECT_DXIL=1.cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4, one run on head1616c291: 2128 passed, 7 failed, 48 ignored (25SKIPPEDlines). All 7 failures also fail onmaine429936con this machine (2122 passed, 13 failed, 48 ignored): the 4gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_*(Recompiler: LDS ds_sub_u32 hides its negation from the driver (RTX 50 refuses it) #1919 fixes them) and 3 of the 9 in main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093. Fixed againstmain:dispatch_chain_oversized_loop_matches_whole,dispatch_chain_wave32_live_loops,dispatch_chain_wave64_live_loops_and_exchange,gpu_heap_flat_reads_match_guarded_and_root_output,gpu_compute_mode_dispatch_abi,gpu_float_cas_uses_ieee_equality.Regression run
scripts/smoke.ps1 -Seconds 60 -Title 9cc6a39e(Newer Retail Game), release builds of both commits in clean trees,maine429936cfirst, one run each, in one queue with this account's other PRs. Both runs hadXCL_PREPARE=0and the same warm DXIL cache. A warm-up run ofmaincame before them and is not shown. A second run ofmainat the end of the queue showed 374 frames and a peak commit of 14157 MB, so differences of a few tens of frames between runs are noise here.main(e429936c):This PR (
1616c291):Not tested
gpu_compute_mode_dispatch_abion an RX 9070 XT in main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093 (s_barrier in a group of several hardware waves). This PR does not change the native wave64 path of that test, so that failure is probably still there.#[cfg(test)]; the smoke run is there becausesplit.rsis a runtime file.AI use
🤖 Generated with Claude Code