Repository navigation
Direct DXIL: bound single-wave split exchanges - #1741
hajduzsolt wants to merge 1 commit into
Conversation
|
On an NVIDIA wave32 card the #1727 hang still happens with this PR, as often as on Tested
Not tested
AI use
|
|
Test report from split-wave64 hardware (the case listed under "Not tested"), plus a correction on the motivation. RTX 5070 12 GB (wave32 only), driver 621.24, Windows 11 26H2, rustc 1.100.0, DXC 1.9.2602.17, PR head 254f51a (base 85e3826). Correctness: #1727 hang: this does not fix it. I wrote #1727's barrier hypothesis and later bisected it to the sparse VRAM test, which
An equivalent local patch earlier gave 9/15 vs 9/15 on c160d86, so I would not read the 9 vs 2 as this PR making it worse; Review notes (from reading the code, not tested):
AI use: Claude Code (claude-opus-5-5) ran the tests and measurements and drafted this comment; I reviewed it. |
Brings xcl-dev#1747, xcl-dev#1791, xcl-dev#605, xcl-dev#1679, xcl-dev#1806, xcl-dev#1745, xcl-dev#1307, xcl-dev#1321 among others. Resolutions: - dxil/kernel.rs: upstream's Lw::new / Lw::finish; the safe s_barrier state and policy and xcl-dev#1741's single-wave bounded exchange move into Lw::new, with a safe_barrier flag (false for the per-lane lowering). - dxil/lower.rs: VAR_BAR_DEAD moves to VAR_BUDGET + 6 (+5 is VAR_F32_MODE). - TRANSLATOR_VERSION 9. - d3d12x/bind.rs: the bounded ExecuteIndirect call runs inside fresh_indirect_arguments. - d3d12x/list_x.rs: tracked_list_type, and transition (pub(super)) over the batched transitions. - recomp/mod.rs: compact backend and per-lane modules both kept; the oversized-structured-code fallback applies to translate after prepare. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
|
A test of this PR on split-wave64 NVIDIA hardware, the case under Not tested. Counts only. Setup:
Warm caches hide this PR. Result on a retail title:
A cost: the bounded exchange grows the largest compute program from 4.0 MB to 6.2 MB of DXIL. The NVIDIA driver took 92 s to build it once, and with 32 GB of RAM (47 GB commit limit) four runs and two precompile attempts ran out of memory while it was building. For the other runs I kept the group barrier locally for that one program. Not tested: the whole suite on this tree; AMD; the HLSL path; the title without the other PRs listed above. AI use: Claude Code (Claude Opus 5.5) applied the PR locally, ran the builds, tests and runs, read the logs and dumps, and wrote this comment. |
Runtime fix verified with unit tests and RX 9070 XT smoke run.
What is in it
Tested
cargo test -p xcl --lib split_single_wave_uses_bounded_exchange -- --test-threads=2passed.XCL_DIRECT_DXIL=1 cargo test -p xcl --lib gpu_split_wave64 -- --test-threads=1 --nocapturepassed (5 passed, no reported skips).cargo test --workspace -- --test-threads=2passed; library tests: 827 passed, 22 ignored. Other test binaries also passed. Runtime GPU skips were not individually assessed in this run.Regression run
main:
PR:
Not tested
AI use