Repository navigation
Conversation
|
Independent Ampere check of exact head
Both builds recompiled XCL. All 310 source hashes matched before/after each run; the pair differs only in those block-tail updates. This adds an older Ampere/driver check to the author's Ada result. Not tested: full workspace suite for this head, retail smoke/gameplay, native wave64, or performance. No implementation change is proposed. AI use: Codex with GPT-6 Astra inspected the fix and test, ran the comparison, and drafted this report. |
|
NVIDIA run: RTX 3070 8 GB (32-lane waves, split wave64), driver 616.56, Windows 11, debug,
AI-assisted (Claude Code). Synthetic tests only. |
79a7e32 to
87adc4b
Compare
|
Re-checked AI-assisted (Claude Code). |
|
Diff audit passed ( Remaining before merge: one independent AMD GPU pass on |
87adc4b to
3990660
Compare
|
Rebased cleanly onto Re-verified locally on RTX 4060 (release): AI use: Google Antigravity (Gemini 4 Neon). |
gefydev
left a comment
There was a problem hiding this comment.
Review of 87adc4b from the per-lane form's side (#1745). I read it against main 3da2abb; I did not run it.
The fix is right. Lw::ballot and Lw::read_lane_uniform go through spin_exchange when a group has more than one console wave (Partner::Spin), which ends the current block, and DxilIr was still wiring successor phis to the block before the exchange. foreign already resyncs tails[cur] after inst_guarded for the same reason; these two were missed when the split exchanges were routed through Lw.
I checked the other DxilIr paths that reach Lw in the split form: read_lane_half (wave_read_lane_at on l & 31), ballot_half (wave_ballot), the loads and stores, and compute_ids emit no blocks. So after this change, every place that can split a block resyncs its tail.
Two notes:
- Optional, more robust:
br/br_ifcould setself.tails[self.cur] = self.lw.cur()before they terminate. The terminator is always inlw.cur(), so this one line would keep the tails right for any futureIrmethod that makes blocks, and it would replace the three separate syncs. Fine to leave as it is if you prefer the change minimal. - The PR conflicts with
mainnow, inlower_dxil.rs, probably the end of the test module after the recent per-lane merges (#2014, #1865). It needs a rebase.
Review written with Claude Code (Claude Opus 5.5); I checked each point against the code.
|
@gefydev Thank you for auditing every |
|
@Decodere thank you: noted that AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested Independent Intel Arc A770 compatibility check for XCL PR #1928 at
Windows 11 Enterprise Evaluation 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 ( Process environment for the build and run Prebuild outside the Arc lock and graphics execution inside it & "$env:USERPROFILE/.cargo/bin/cargo.exe" test --locked -p xcl --lib --no-run -j 2 --message-format=json-render-diagnostics > L:/XclTooling/pr1928/build-3990660.log
$pr1928Command = @'
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test {
$pr1928Exe = Join-Path $env:CARGO_TARGET_DIR 'debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe'
if ((Get-FileHash -LiteralPath $pr1928Exe).Hash -ne 'E321749EF65B804C74EE37850BB786D14E1B169E5D431EC6CAD74F4D3945BB6C') { throw 'Test binary changed since the prebuild' }
& $pr1928Exe 'gpu::recomp::lower_dxil::tests::split_wave64_spin_exchange_updates_block_tails' --exact --test-threads=1 --nocapture
}
'@
& powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command $pr1928Command 2>&1 | Tee-Object -FilePath L:/XclTooling/pr1928/gpu-3990660.logThe temporary Not tested Full workspace suite, comparison against AI use T3 Code / Codex (gpt-6.2-sol) verified the exact PR head, ran the checked-in test, and prepared this report. |
RX 6800M Direct DXIL GPU verification for PR #1928 at
|
|
Note after recent merges on If you'd still like to land |
…test Both `self.tails[self.cur] = self.lw.cur()` sync lines in `DxilIr::ballot` and `DxilIr::read_lane` landed on `main` via xcl-dev#2203. Rebase xcl-dev#1928 onto `main` to keep only the standalone `[128, 1, 1]` split-wave64 (`Partner::Spin`) regression test covering: - whole-wave ballot (`s_bcnt1_i32_b64`) in a uniform branch arm feeding a join PHI, - cross-half `v_readlane_b32` (lane 37) in a uniform branch arm feeding a join PHI, - `v_readfirstlane_b32` (ballot + read_lane) in a uniform loop feeding back-edge PHIs. Each case compiles and validates through `lower_dxil::compute_split` and, when a GPU is available, checks dispatch parity against `run_compute_waves`. Part of xcl-dev#1889 Assisted-by: Google Antigravity (Gemini 4 Neon)
3990660 to
19b8bd5
Compare
|
@raylitebull Thanks for the heads-up — rebased #1928 onto AI use: rebased, tested, and drafted with Google Antigravity (Gemini 4 Neon). |
What is in it
Part of #1889. Part of #1269.
Follow-up rebase of #1928 onto
main: bothself.tails[self.cur] = self.lw.cur();sync lines inDxilIr::ballotandDxilIr::read_lanelanded in #2203, so this PR now contains only the standalonesplit_wave64_spin_exchange_updates_block_tailsregression test incrates/xcl/src/gpu/recomp/lower_dxil.rs(+81/-0, zero runtime changes):[128, 1, 1]split-wave64 (Partner::Spin) compute shaders throughlower_dxil::compute_split:s_bcnt1_i32_b64) in a uniform branch arm feeding a join PHI.v_readlane_b32(lane 37) in a uniform branch arm feeding a join PHI.v_readfirstlane_b32(ballot + read_lane) inside a uniform loop feeding back-edge PHIs.run_compute_waves.Tested
1.9.2609.5(01b62ad4), release build.cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests::split_wave64_spin_exchange_updates_block_tails -- --nocapture): 1 passed, 0 failed, 0 ignored (0.35 s, full DXIL validation + RTX 4060 GPU dispatch parity againstrun_compute_waves).lower_dxilmodule suite (cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests -- --test-threads=4 --nocapture): 21 passed, 0 failed, 0 ignored (1.40 s,17runtimeSKIPPEDlines on RTX 4060:14no wave64+3wave32 per-lanerefused).cargo build --release -p xcl: passed.Regression run
Baseline (
origin/main426a5a74):PR head (
19b8bd51):Not tested
lower_dxilsubcases on this wave32-only RTX 4060 (the 3 new split-wave64Partner::Spincases themselves all ran on the RTX 4060).19b8bd51(diff is test-only inside#[cfg(test)] mod testsoflower_dxil.rswith zero runtime code changes; targetedlower_dxil::tests21/0 and paired 60 s smoke ran on19b8bd51).AI use
Rebased onto
main, verified, and updated with Google Antigravity (Gemini 4 Neon). All targeted GPU tests and paired 60 s RTX 4060 smoke runs were executed locally.