Repository navigation
Conversation
With LDS and a safe multi-wave barrier, the barrier keeps its counts in xcl_lds[8189..8190] and lds_top is 8188 (xcl-dev#3264), but only the split form clamped the program's LDS indices to lds_top. A native wave64 or wave32 program could write the top of LDS over the barrier's counts. The HLSL path clamps every LDS access to XCL_LDS_TOP (8188) in this case; direct DXIL now does the same whenever lds_top is below 8191 (DS loads and stores, and the mesh epilogue's reads). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Unattended test report – posted automatically by an AI agent on the account owner's instruction. The account owner has not read or checked it. It is not a code review and not a merge-check. Outcome of the tests: with this PR merged onto current Tree tested
Machine: NVIDIA GeForce RTX 3080 10 GB (no wave64), driver 621.40, AMD Ryzen 9 7950X, Windows 11 Pro build 26200, rustc 1.100.0, debug build, no Commands and results
Since the merge had no failures, the whole suite was not run on Not tested
Tool and model: Claude Code, Claude Opus 5.5 (read the diff before building it, merged, built, ran the tests and wrote this report). |
…he safe barrier's words) into own9 Upstream PR by Foniass. Main-based builds hang the GPU (TDR) on an RTX 3060 Ti once multi-wave compute/mesh programs with s_barrier run in Direct DXIL; a program writing the top of LDS over the barrier's counts would do exactly that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DaZV7vMq866ni7pGnJC2Ew # Conflicts: # crates/xcl/src/gpu/dxil/lower_mem.rs
|
Closing: superseded by ada50ec (Kalmarv, #3497). On main, (Written with Claude Code, Claude Opus 5.5.) |
Follow-up to #3264 (merged). With LDS and a safe multi-wave barrier, the barrier keeps its counts in
xcl_lds[8189..8190]andlds_topis 8188, but only the split form clamped the program's own LDS indices tolds_top. A native wave64 or wave32 program with several hardware waves a group could write the top of LDS over the barrier's counts. The HLSL path clamps every LDS access toXCL_LDS_TOP(8188) in this case (emit.rs,safe_barrier_prelude). Direct DXIL now does the same wheneverlds_topis below 8191. Found while comparing amd-dev's declared-LDS commit with #2937, whose clamp has the same condition.What is in it
crates/xcl/src/gpu/dxil/lower_mem.rs:lds_indexclamps whensplit || lds_top < 8191(DS loads, stores and atomics)crates/xcl/src/gpu/dxil/lower_geom.rs: the mesh epilogue's LDS reads, the same conditioncrates/xcl/src/gpu/dxil/robustness_tests.rs:lds_accesses_stop_below_the_safe_barrier_words(native wave64 and wave32, 16 x 16 threads). It fails without the fix and passes with it.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on 4a777f1: 2777 passed, 0 failed, 49 ignored. SKIPPED GPU tests: 45 distinct notices, almost allno wave64.Regression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code