Repository navigation
Conversation
|
AMD native wave64 run (listed as untested), plus an RTX 3060, paired against Head
Per-test comparison: on both cards the only differences are the 2 new tests ( Not tested: the newly split |
|
Ran the split-compute tests at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. All ten tests pass, including What this adds: the author tested an Ada RTX 4070 SUPER with DXC 1.8.2502.11; this is a Blackwell wave32 part with DXC/DXIL 1.9.2609.5. No test report exists in the thread yet. Not tested: the whole workspace suite, the retail shader corpus validation, the cold PSO compile A/B, a paired 60 s smoke run, AMD/native wave64 and Intel GPUs, Wine, release profile, title data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
Tested: current PR head merged onto current One red on this lane: the new group-shapes test crashes at the same
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
|
Re-tested commit Environment
Results
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Diff review (wave32 group-shape checks) and CI look clean, and Windows native/split coverage is solid, but holding merge until the deterministic |
|
@raylitebull That
All native Windows reports here (AMD RX 9070 XT wave64, NVIDIA RTX 5070 Ti / 5070 / 4070 SUPER / 3060 Ti / 3060) are green, so this isn't a regression from #2349. |
bmjask
left a comment
There was a problem hiding this comment.
No concrete source-level defect found. The admission gates exclude partial/LDS groups, continuation identity is correct across admitted group shapes, and the GPU parity coverage is substantial; current CI and AMD/NVIDIA reports are green. Residual validation gap: no retail-title exercise of the newly admitted 2-D/3-D group shapes and no Intel run. Those should remain explicit, but I found no merge blocker.
|
@saintwolf I published the tested main integration branch in This preserves main's #2371 scratch-slot reuse hook while using the full threadgroup size for scratch. The tests include four wave32 group shapes and the existing divergent-edge regression, with the reuse hook checked both enabled and disabled. Local result: 6 passed, 0 failed, 0 ignored, 0 explicit skips on the RTX 3060 Ti. Each exact filter ran separately with AI use: Codex (GPT-6) resolved the conflict and verified the focused checks. Optional temporary Discord for coordinating contributor work, testing, and comparing results. |
Single-wave 2D/3D native wave32 compute groups (y * z > 1, total <= 32) no longer allocate @xcl_wt or emit the wave-index atomic and barriers, since tid equals WaveGetLaneIndex(). Multi-wave 2D/3D groups also skip the trailing barrier unless sharing xcl_lds[8191]. Extend direct DXIL compute dispatch splitting to all full-wave native wave32 threadgroup shapes without guest LDS (total >= 32, total % 32 == 0): size per-group scratch by total threads, preserve @xcl_wt only as the wave-ID prefix for multi-wave 2D/3D groups while gating the wave64 exchange state machine on xcl_xs, select FlattenedThreadIdInGroup() for multi-wave 1D groups, and recompute Feature::WaveOps per piece so pieces without wave ops validate. Part of xcl-dev#1269, xcl-dev#2088. Assisted-by: Antigravity (Gemini 4 Neon) Resolve the merge conflict against current main 8b957be. Keep main’s scratch-slot reuse hook and the PR’s full threadgroup sizing. Original-PR: xcl-dev#2349 Original-commit: 63131c6 Assisted-by: OpenAI Codex (GPT-6)
63131c6 to
6aa4e2f
Compare
|
@Prime1997 Thanks for resolving the conflict on
|
|
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2349 rebased head Setup
Targeted RTX 4060 release unit & GPU tests (
|
|
Tested head
Not tested: retail title. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 ran the reruns, checked and posted). |
|
Tested: Clean Not tested: Native wave64, [4,8,1] groups, workspace suite, retail smoke and performance. AI use: T3 Code / Codex ( |
|
NVIDIA and AMD full-suite run, to go with the reports above by Decodere, JJAutoCompare, upipibi, since none of them covers AMD. Tested exact head Tested
Not tested
AI use
|
Single-wave 2D/3D native wave32 compute groups (y * z > 1, total <= 32) no longer allocate @xcl_wt or emit the wave-index atomic and barriers, since tid equals WaveGetLaneIndex(). Multi-wave 2D/3D groups also skip the trailing barrier unless sharing xcl_lds[8191]. Extend direct DXIL compute dispatch splitting to all full-wave native wave32 threadgroup shapes without guest LDS (total >= 32, total % 32 == 0): size per-group scratch by total threads, preserve @xcl_wt only as the wave-ID prefix for multi-wave 2D/3D groups while gating the wave64 exchange state machine on xcl_xs, select FlattenedThreadIdInGroup() for multi-wave 1D groups, and recompute Feature::WaveOps per piece so pieces without wave ops validate. Part of xcl-dev#1269, xcl-dev#2088. Assisted-by: Antigravity (Gemini 4 Neon) Resolve the merge conflict against current main 8b957be. Keep main’s scratch-slot reuse hook and the PR’s full threadgroup sizing. Original-PR: xcl-dev#2349 Original-commit: 63131c6 Assisted-by: OpenAI Codex (GPT-6) # Conflicts: # crates/xcl/src/gpu/dxil/kernel.rs
|
Thanks for the thorough review and timing check, @thehollowedone! Two updates on this PR:
Ready for re-check when you have a moment! |
|
@saintwolf I measured the runtime tradeoff on my RTX 3080 (driver 616.92) using the production code from Across 128 groups, both forms matched all 8,192 expected output words and preserved all 16 guard words. With 32 GPU timestamp samples per form after warmup, median execution time was 41.984 µs whole and 43.008 µs split. An independent run reproduced both the readback and the timings. That puts the extra GPU execution time at about 1 µs for this generated workload. I haven’t verified that some retail uses this shader shape above the threshold, so I can’t infer a frame-time impact from this test. I used Codex GPT-6.2 Sol to write and run the fixture. A separate GPT-6.2 Sol agent reviewed the source, and GPT-6.1 Terra independently repeated the Windows and GPU checks. Codex GPT-6.2 Astra drafted this comment. I reviewed and approved this comment before posting. |
|
merge-check claim |
|
merge-check
verdict: not yet: on an RTX 3090 (wave32) the merged build presents about 18 % fewer frames and issues about 26 % fewer draws in the world than its base, consistently over 3 pairs including reversed order. It may be worth finding which part costs the time (the wider split, or the single-wave 2-D/3-D Edited 2026-12-01: this report replaces my earlier one for |
|
Correction to my report above, about the device removal it mentions (0x887a0005, DRED "page fault at GPU VA 0x0", no breadcrumbs): on this machine it was most likely NVIDIA's 512 MB shader-heap limit (#2403), not a bug of
Hardware: NVIDIA GeForce RTX 3090 24 GB (driver 621.24), Intel Core i5-10600K, 32 GB, Windows 11 Home build 26300. Tool and model: Claude Code (Claude Opus 5.5), results checked by me. |
|
Source-level portability concern on current head For Could the split eligibility keep multi-wave 1-D shaders with wave-dependent operations whole until the pieces can preserve the guest wave membership? A structural/CPU model regression using two legal quad assignments would pin this case without relying on a driver to choose the second layout. This is a specification-level counterexample; I did not observe a hardware failure or run a test in this review. AI use: Codex (GPT-6.2 Sol) reviewed the PR and specification; Codex (GPT-6.2 Astra) checked the counterexample. |
|
The existing duplicate group D85 lists this PR with #2353. #2353 (closed as superseded by #3504) and #3504 carry an earlier version of this commit (63131c6). 04f0bb6 adds a guard #3504 does not have: a multi-wave 1-D group with live wave or quad ops is kept whole ( AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Single-wave 2D/3D native wave32 compute groups (y * z > 1, total <= 32) no longer allocate @xcl_wt or emit the wave-index atomic and barriers, since tid equals WaveGetLaneIndex(). Multi-wave 2D/3D groups also skip the trailing barrier unless sharing xcl_lds[8191]. Extend direct DXIL compute dispatch splitting to all full-wave native wave32 threadgroup shapes without guest LDS (total >= 32, total % 32 == 0): size per-group scratch by total threads, preserve @xcl_wt only as the wave-ID prefix for multi-wave 2D/3D groups while gating the wave64 exchange state machine on xcl_xs, select FlattenedThreadIdInGroup() for multi-wave 1D groups, and recompute Feature::WaveOps per piece so pieces without wave ops validate. Part of xcl-dev#1269, xcl-dev#2088. Assisted-by: Antigravity (Gemini 4 Neon) Resolve the merge conflict against current main 8b957be. Keep main’s scratch-slot reuse hook and the PR’s full threadgroup sizing. Original-PR: xcl-dev#2349 Original-commit: 63131c6 Assisted-by: OpenAI Codex (GPT-6) # Conflicts: # crates/xcl/src/gpu/dxil/kernel.rs # Conflicts: # crates/xcl/src/gpu/dxil/kernel.rs # crates/xcl/src/gpu/dxil/module/split.rs
5737eb7 to
04f0bb6
Compare
|
Good catch on the SM 6.6 1-D quad-to-wave rule, @thehollowedone! Updated in
AI use: Antigravity (Gemini 4 Neon) implemented the guard and test, ran the local tests and smoke, and drafted this reply. |
|
merge-check
|
Extends direct DXIL compute dispatch splitting beyond
[32, 1, 1]to full-wave native wave32 threadgroup shapes without guest LDS ([8, 4, 1],[4, 8, 1],[4, 4, 2],[8, 8, 1], wave-free[128, 1, 1], etc.), and removes redundant@xcl_wt/ atomic / barrier setup on single-wave 2D/3D compute groups. Part of #1269, #2088.What is in it
crates/xcl/src/gpu/dxil/lanes.rs: skip allocating@xcl_wtand emitting the wave-index atomic and barriers for single-wave 2D/3D native wave32 compute groups (y * z > 1 && total <= lanes, wheretid == WaveGetLaneIndex()); skip the trailing barrier on multi-wave 2D/3D groups unless sharingxcl_lds[8191].crates/xcl/src/gpu/dxil/kernel.rs: enablesplit_computefor full-wave native wave32 groups without guest LDS (total >= 32 && total % 32 == 0), passingsplit_tidfor multi-wave 2D/3D wave-ID prefixes.crates/xcl/src/gpu/dxil/module/split.rs: size per-group scratch bytotal = threads[0] * threads[1] * threads[2], permit@xcl_wtonly as the wave-ID prefix while gating the wave64xcl_xsexchange state machine onhas_xs(so guest barriers / shared-memory ops in native wave32 cleanly decline splitting), selectFlattenedThreadIdInGroup()for wave-independent multi-wave 1D groups while keeping multi-wave 1D shaders with livedx.op.wave*/dx.op.quad*intrinsics whole (SM 6.6 does not guarantee identical quad-to-wave assignment across dispatches without a wave-ID prefix), recomputeFeature::WaveOpsper piece so pieces without wave ops validate, and add unit +dxil.dllvalidation + GPU bit-exact parity tests (including slabbeddispatch_split_by) across[8, 4, 1],[4, 4, 2],[8, 8, 1], and[128, 1, 1].Runtime tradeoff (accepted cost)
split_computeto the remaining full-wave native wave32 threadgroup shapes carries the same per-dispatch scratch round-trip and multi-dispatch launch overhead already accepted onmainfor[32, 1, 1]compute shaders (gated byXCL_DIRECT_SPLIT_INSTRUCTIONS, default12,500;0disables splitting).12,500instructions split — trading a small per-dispatch chain overhead for a 3×–14× reduction in cold NVIDIACreateComputePipelineStatecompilation time (11–26 swhole →1.1–1.9 ssplit on the largest newly admitted shaders) and allowing parallel piece compilation. (In the synthetic GPU parity fixture, the split threshold is forced down to40instructions, so its~2 µs → ~6–8 µsratio reflects empty dispatch launch overhead rather than12,500+-instruction shader runtime.)Tested
32.0.16.2140), AMD Ryzen 7 7800X3D,rustc 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL1.8.2502.11.04f0bb6f(onmain9dfbe3ea):cargo test -p xcl --lib gpu::dxil::module::split::tests -- --test-threads=1: 14 passed, 0 failed (includingmulti_wave_1d_wave_ops_decline_splitand bit-exact whole vs split and slabbed GPU parity across[8, 4, 1],[4, 4, 2],[8, 8, 1], and wave-free[128, 1, 1]).cargo build --release -p xcl: clean build.2,689CS shaders,dxil.dll, prior head before multi-wave 1D wave-op guard): 96 newly split native wave32 shaders ([8, 4, 1]: 86,[4, 8, 1]: 6,[4, 4, 2]: 2,[8, 8, 1]: 1,[128, 1, 1]: 1) produced 287 validated pieces with 0 validation errors (existing 806[32, 1, 1]shaders / 7,906 pieces also validated with 0 errors).CreateComputePipelineStateA/B benchmark (main06c9f55vs this branch, release builds, 4 UMA windows, warm 2nd calls1.33–8.52 ms) across the top 8 newly split native wave32 shaders:[4, 4, 2](56ddc92162fbb20f, 8 pieces) 25.80 s → 1.86 s (13.9×);[8, 4, 1](de83041b451429d1/0526ab24d5e0993b/d53818c323d15ea1, 6 pieces each) 13.18–14.27 s → 1.16–1.32 s (9.8×–11.4×);[128, 1, 1](14009b6da78ed223, 5 pieces) 11.52 s → 1.57 s (7.4×).Regression run
Not tested
04f0bb6f(tested on NVIDIA RTX 4070 SUPER locally; earlier heads were also verified on AMD RDNA2/RDNA4 and Intel Arc A770 in comments above).12,500+-instruction shaders during in-world play (the 60 s smoke covers menus; see Runtime tradeoff above).AI use