Recompiler: XCL_COMPACT_NEST=auto nests programs of 512 cases or more #2008

Closed
Pipodi wants to merge 8 commits from upstream-pr/2018 into main
Pipodi commented 2026-11-25 00:54:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-25T00:54:49Z.


Stacked on #1692 (5d9d3209, on #1448 51f9a05a and #1316's commits rebased as b662d124..7c52d4f6, rebased onto main d52ff48c); only the top commit (f141b9d5) belongs here. The stack now carries rebased and edited versions of #1316's commits: b662d124 (prepare() split), efc54bda (compact form), 6a3c753a (A/B tests) and 7c52d4f6 (compact backend). The edits: the conflicts against main's dispatch_remap / no_remap are resolved, efc54bda adds the test the_compact_form_keeps_the_dispatch_remap, and translate_as opens one ShaderTranslation span for the compact attempt and the normal form. #1316 itself still sits on an older main.

This revision: rebased onto main d52ff48c. In #1316's rebased backend commit (7c52d4f6) the conflicts with main are resolved: build.rs's translator sources (main's mod.rs in place of dxc.rs, with compact.rs), and in pso.rs the compact refusal tag now wraps main's compile_cached_in / compile_cached choice. main's semantic_pipeline_setting (shaders.rs) now lists XCL_COMPACT_CS (in 7c52d4f6) and XCL_COMPACT_NEST (in #1692's 421109bb), each with a test (warm_settings_keep_compact_cs_switch, warm_settings_keep_compact_nest_switch), so both change the warm-settings key. An earlier rebase (onto 0fe06eb0) threaded main's rt32_mask through #1316's rebased commits. In an earlier rebase, this PR's own commit had no conflicts. #1448's rebase (with #1316's commits) resolved conflicts in gpu/recomp/pso.rs (main's XCL_DEBUG_CS_SUB and rodata changes kept together with the compact routing; XCL_DEBUG_CS_SUB forces CompactCs::Never) and in shaders.rs, and fixed two places that no longer built after it: the super::translate path and the console_translation call in targets.rs.

XCL_COMPACT_NEST=<P> nests every compact program or none. This adds XCL_COMPACT_NEST=auto: groups of 32 cases for a program of 512 cases (distinct block texts) or more, and the flat switch below. The case count is known only once the blocks are emitted, so compact_at resolves the setting there. Unset, 0 and a size behave as in #1692. Turning auto on by default is a separate PR. Part of #1269.

The measurements behind the numbers (#1269 result), RTX 4090, release, cold driver (new exe path and fresh XCL_DXIL_CACHE per run):

program (cases) flat nested, P = 32
ActivateProbes (751) 11.6 s 5.9 s
ActivateProbesTarget (698) 9.5 s 4.8 s
ActivateRays (2,516) 168.0 s, 8.08 GB 36.1 s, 1.53 GB (P = 16: 36.8 s, P = 64: 37.2 s)

512 is below the smallest program measured (698 cases); nothing under it was timed.

From testers, on the same three programs:

  • AMD Windows: @DTsordas (RX 9060 XT) and @HKEY-Funk-Machine (RX 9070) built all three with P = 64, where the flat form did not finish or took minutes.
  • RADV: @St5sz2Jk (RX 9070 XT) built ActivateRays only nested (202 s against an OOM kill at 94 GB). The two ~700-case programs built 9 % faster and 28 % slower nested, which is a cost of auto there.

What is in it

  • crates/xcl/src/gpu/recomp/compact.rs:
    • enum Nest { Flat, Groups(usize), Auto }; parse_nest accepts auto (trimmed, any case);
    • NEST_MIN_CASES (512) and AUTO_GROUP (32);
    • resolve_nest, called in compact_at once the cases are counted;
    • compact_with still takes a group size, so its callers are unchanged.
  • crates/xcl/src/gpu/recomp/pso.rs: the translated-shader cache names an auto entry _c_na (the group size follows from the program, which the hash identifies). _c and _c_n<P> are unchanged.
  • Tests:
    • compact::tests::auto_nest_starts_at_the_case_threshold: resolve_nest at 511/512, and compact_at with the threshold at the program's case count (nested in groups of 32) and one above it (byte-identical to the flat text);
    • the parse test gets auto and AUTO;
    • the cache-name test gets _c_na.

Tested

  • RTX 4090, driver 621.40, i9-13900K, Windows 11 Pro 10.0.26300, stable MSVC Rust (rustc 1.100.0 (0ef1bc386 2026-11-09)), debug build for the suite, release builds for the smoke runs.

  • Rebased onto main d52ff48c. The whole suite, cargo test --workspace --no-fail-fast -- --test-threads=4 (debug, RTX 4090), run on #2025 (30aaa283, which contains this PR; not run on this head separately): 2916 passed, 1 failed, 51 ignored, 26 SKIPPED. 1 failed: gpu_direct_image_get_resinfo_d16, which fails on main d52ff48c too (broken by 43c56dce; fixed by test-only #3513).

  • At 825aa91 / 480143a (not rerun): cargo test -p xcl --lib compact -- --test-threads=4 with XCL_COMPACT_NEST unset, =32 and =auto: 34 passed, 0 failed each. The cache tests (shader_cache_tests): 16 passed. On 480143a, compact::tests: 6 passed.

  • SKIPPED lines of the workspace run at the stack top, deduplicated (29):

    SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64
    SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu: bridged_dpp, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64
    SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
    SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
    SKIPPED gpu::recomp::tests_compact::gpu_compact_native_wave64_form: no wave64
    SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
    SKIPPED hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)
    SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D)
    
  • Fails without the change: with Auto resolved to 0 and its tag set to _c, auto_nest_starts_at_the_case_threshold and translated_compact_and_normal_forms_are_kept_apart fail.

Regression run

The same retail title for 60 s on both sides, scripts/smoke.ps1 on clean trees, release builds, XCL_PREPARE=0 and XCL_PRESS_AT=16:A on both sides, RTX 4090 (driver 621.40).

main (6bfb5c51):

xcl-smoke v1
commit: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c
gpu: NVIDIA GeForce RTX 4090
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1611 (PresentX 1611)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 17826 MB

This PR's head (f141b9d5, rebased onto main d52ff48c):

xcl-smoke v1
commit: f141b9d51d721161184bff58ac93567a76296518
gpu: NVIDIA GeForce RTX 4090
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1610 (PresentX 1610)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 20821 MB

The PR's run got 99.9 % of main's frames and 116.8 % of its peak commit, higher than main's but within 125 %.

Not tested

  • auto in a title run: the smoke runs have it unset, so they check only that the change breaks nothing.
  • Programs under 698 cases, nested or flat, in the driver.
  • auto itself on AMD or RADV: the testers' numbers above are with a fixed P.
  • Intel.
  • AMD / RDNA4 and wave64-only paths on this head: the suite and the smoke pair ran on the RTX 4090 only, where the 23 wave64 tests are SKIPPED.

AI use

  • Claude Code.
    • A Claude Sonnet 5.5 subagent wrote the first version of the code and tests.
    • A Claude Fable 5.2 subagent planned the measurements.
    • Claude Opus 5.5 (the main session) set the design, fixed the code, ran the measurements and the suite, did the rebases onto #1692's earlier heads, and wrote this description. A second Opus 5.5 agent reviewed the diff.
    • A Claude Sonnet 5.5 subagent ran the smoke pair on the previous head.
  • An earlier revision: Claude Code, Claude Opus 5.5 rebased the stack (with #1316's commits) onto an earlier main, resolved the conflicts against dispatch_remap / no_remap, added the test the_compact_form_keeps_the_dispatch_remap and the span in translate_as, and ran the suite and the smoke pair on that head.
  • A later rebase onto main, the conflict resolution, the test runs and that description update were done with Claude Code (Claude Opus 5.5 orchestrating, Claude Sonnet 5.5 subagents).
  • The revision two before this one: Claude Code with Claude Opus 5.5 (the main session) did a rebase onto main and the conflict resolution, ran the suite and the smoke pair through subagents, and updated this description. A Claude Opus 5.5 reviewer agent checked the rebase (range-diff and the conflict resolutions).
  • The revision before this one: Claude Code, Claude Opus 5.5: rebased the branch, resolved the conflicts, updated this description; Claude Sonnet 5.5 subagents ran the tests and the smoke runs; a Claude Opus 5.5 reviewer agent checked the rebase (range-diff).
  • The rebase onto main 0fe06eb0: Claude Code, Claude Opus 5.5 (with subagents): the rebase, the suite and smoke runs, and this description update.
  • Rebase onto d52ff48c, counts and description update: Claude Code, Claude Opus 5.5
  • This revision: Claude Code, Claude Opus 5.5 (main session) rebased this commit onto #1692's 5d9d3209 (no change of its own) and updated this description; subagents ran the suite on #2025 and the smoke pair.
<!-- greyfinch-sync:ivall/xcl:issue:5483004796 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-25T00:54:49Z. --- Stacked on #1692 (`5d9d3209`, on #1448 `51f9a05a` and #1316's commits rebased as `b662d124`..`7c52d4f6`, rebased onto main d52ff48c); only the top commit (`f141b9d5`) belongs here. The stack now carries rebased and edited versions of #1316's commits: `b662d124` (prepare() split), `efc54bda` (compact form), `6a3c753a` (A/B tests) and `7c52d4f6` (compact backend). The edits: the conflicts against `main`'s `dispatch_remap` / `no_remap` are resolved, `efc54bda` adds the test `the_compact_form_keeps_the_dispatch_remap`, and `translate_as` opens one `ShaderTranslation` span for the compact attempt and the normal form. #1316 itself still sits on an older `main`. This revision: rebased onto main d52ff48c. In #1316's rebased backend commit (`7c52d4f6`) the conflicts with `main` are resolved: `build.rs`'s translator sources (`main`'s `mod.rs` in place of `dxc.rs`, with `compact.rs`), and in `pso.rs` the compact refusal tag now wraps `main`'s `compile_cached_in` / `compile_cached` choice. `main`'s `semantic_pipeline_setting` (`shaders.rs`) now lists `XCL_COMPACT_CS` (in `7c52d4f6`) and `XCL_COMPACT_NEST` (in #1692's `421109bb`), each with a test (`warm_settings_keep_compact_cs_switch`, `warm_settings_keep_compact_nest_switch`), so both change the warm-settings key. An earlier rebase (onto 0fe06eb0) threaded `main`'s `rt32_mask` through #1316's rebased commits. In an earlier rebase, this PR's own commit had no conflicts. #1448's rebase (with #1316's commits) resolved conflicts in `gpu/recomp/pso.rs` (`main`'s `XCL_DEBUG_CS_SUB` and rodata changes kept together with the compact routing; `XCL_DEBUG_CS_SUB` forces `CompactCs::Never`) and in `shaders.rs`, and fixed two places that no longer built after it: the `super::translate` path and the `console_translation` call in `targets.rs`. `XCL_COMPACT_NEST=<P>` nests every compact program or none. This adds `XCL_COMPACT_NEST=auto`: groups of 32 cases for a program of 512 cases (distinct block texts) or more, and the flat switch below. The case count is known only once the blocks are emitted, so `compact_at` resolves the setting there. Unset, `0` and a size behave as in #1692. Turning `auto` on by default is a separate PR. Part of #1269. The measurements behind the numbers ([#1269 result](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7147839747)), RTX 4090, release, cold driver (new exe path and fresh `XCL_DXIL_CACHE` per run): | program (cases) | flat | nested, P = 32 | |---|---|---| | ActivateProbes (751) | 11.6 s | 5.9 s | | ActivateProbesTarget (698) | 9.5 s | 4.8 s | | ActivateRays (2,516) | 168.0 s, 8.08 GB | 36.1 s, 1.53 GB (P = 16: 36.8 s, P = 64: 37.2 s) | 512 is below the smallest program measured (698 cases); nothing under it was timed. From testers, on the same three programs: - AMD Windows: @DTsordas ([RX 9060 XT](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7147677753)) and @HKEY-Funk-Machine ([RX 9070](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7148759631)) built all three with P = 64, where the flat form did not finish or took minutes. - RADV: @St5sz2Jk ([RX 9070 XT](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7148602265)) built ActivateRays only nested (202 s against an OOM kill at 94 GB). The [two ~700-case programs](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7148795610) built 9 % faster and 28 % slower nested, which is a cost of `auto` there. **What is in it** - `crates/xcl/src/gpu/recomp/compact.rs`: - `enum Nest { Flat, Groups(usize), Auto }`; `parse_nest` accepts `auto` (trimmed, any case); - `NEST_MIN_CASES` (512) and `AUTO_GROUP` (32); - `resolve_nest`, called in `compact_at` once the cases are counted; - `compact_with` still takes a group size, so its callers are unchanged. - `crates/xcl/src/gpu/recomp/pso.rs`: the translated-shader cache names an `auto` entry `_c_na` (the group size follows from the program, which the hash identifies). `_c` and `_c_n<P>` are unchanged. - Tests: - `compact::tests::auto_nest_starts_at_the_case_threshold`: `resolve_nest` at 511/512, and `compact_at` with the threshold at the program's case count (nested in groups of 32) and one above it (byte-identical to the flat text); - the parse test gets `auto` and ` AUTO `; - the cache-name test gets `_c_na`. **Tested** - RTX 4090, driver 621.40, i9-13900K, Windows 11 Pro 10.0.26300, stable MSVC Rust (`rustc 1.100.0 (0ef1bc386 2026-11-09)`), debug build for the suite, release builds for the smoke runs. - Rebased onto main d52ff48c. The whole suite, `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug, RTX 4090), run on #2025 (`30aaa283`, which contains this PR; not run on this head separately): **2916 passed, 1 failed, 51 ignored, 26 SKIPPED**. 1 failed: `gpu_direct_image_get_resinfo_d16`, which fails on main d52ff48c too (broken by 43c56dce; fixed by test-only #3513). - At `825aa91` / `480143a` (not rerun): `cargo test -p xcl --lib compact -- --test-threads=4` with `XCL_COMPACT_NEST` unset, `=32` and `=auto`: 34 passed, 0 failed each. The cache tests (`shader_cache_tests`): 16 passed. On `480143a`, `compact::tests`: 6 passed. - SKIPPED lines of the workspace run at the stack top, deduplicated (29): ``` SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64 SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu: bridged_dpp, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64 SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED gpu::recomp::tests_compact::gpu_compact_native_wave64_form: no wave64 SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows SKIPPED hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1) SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D) ``` - Fails without the change: with `Auto` resolved to 0 and its tag set to `_c`, `auto_nest_starts_at_the_case_threshold` and `translated_compact_and_normal_forms_are_kept_apart` fail. **Regression run** The same retail title for 60 s on both sides, `scripts/smoke.ps1` on clean trees, release builds, `XCL_PREPARE=0` and `XCL_PRESS_AT=16:A` on both sides, RTX 4090 (driver 621.40). main (`6bfb5c51`): ``` xcl-smoke v1 commit: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c gpu: NVIDIA GeForce RTX 4090 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1611 (PresentX 1611) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 17826 MB ``` This PR's head (`f141b9d5`, rebased onto main d52ff48c): ``` xcl-smoke v1 commit: f141b9d51d721161184bff58ac93567a76296518 gpu: NVIDIA GeForce RTX 4090 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1610 (PresentX 1610) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 20821 MB ``` The PR's run got 99.9 % of `main`'s frames and 116.8 % of its peak commit, higher than `main`'s but within 125 %. **Not tested** - `auto` in a title run: the smoke runs have it unset, so they check only that the change breaks nothing. - Programs under 698 cases, nested or flat, in the driver. - `auto` itself on AMD or RADV: the testers' numbers above are with a fixed P. - Intel. - AMD / RDNA4 and wave64-only paths on this head: the suite and the smoke pair ran on the RTX 4090 only, where the 23 wave64 tests are SKIPPED. **AI use** - Claude Code. - A Claude Sonnet 5.5 subagent wrote the first version of the code and tests. - A Claude Fable 5.2 subagent planned the measurements. - Claude Opus 5.5 (the main session) set the design, fixed the code, ran the measurements and the suite, did the rebases onto #1692's earlier heads, and wrote this description. A second Opus 5.5 agent reviewed the diff. - A Claude Sonnet 5.5 subagent ran the smoke pair on the previous head. - An earlier revision: Claude Code, Claude Opus 5.5 rebased the stack (with #1316's commits) onto an earlier `main`, resolved the conflicts against `dispatch_remap` / `no_remap`, added the test `the_compact_form_keeps_the_dispatch_remap` and the span in `translate_as`, and ran the suite and the smoke pair on that head. - A later rebase onto `main`, the conflict resolution, the test runs and that description update were done with Claude Code (Claude Opus 5.5 orchestrating, Claude Sonnet 5.5 subagents). - The revision two before this one: Claude Code with Claude Opus 5.5 (the main session) did a rebase onto `main` and the conflict resolution, ran the suite and the smoke pair through subagents, and updated this description. A Claude Opus 5.5 reviewer agent checked the rebase (range-diff and the conflict resolutions). - The revision before this one: Claude Code, Claude Opus 5.5: rebased the branch, resolved the conflicts, updated this description; Claude Sonnet 5.5 subagents ran the tests and the smoke runs; a Claude Opus 5.5 reviewer agent checked the rebase (range-diff). - The rebase onto main 0fe06eb0: Claude Code, Claude Opus 5.5 (with subagents): the rebase, the suite and smoke runs, and this description update. - Rebase onto d52ff48c, counts and description update: Claude Code, Claude Opus 5.5 - This revision: Claude Code, Claude Opus 5.5 (main session) rebased this commit onto #1692's `5d9d3209` (no change of its own) and updated this description; subagents ran the suite on #2025 and the smoke pair.
nnonno91 commented 2026-11-25 01:11:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T01:09:05Z.


Tested

Independent XCL_COMPACT_NEST=auto GPU check on exact head 480143a6583b2f4ca418898cd7ba224d62b83f51. Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62, native wave64), and GeForce RTX 5090 (32.0.16.1742, split wave64). Rust 1.100.0 x64 MSVC and DXC/DXIL 1.8.2502.11. Unoptimized dev/test profiles with debug info off.

  • cargo build --workspace --locked passed.
  • cargo test --locked -p xcl --lib <filter> -- --test-threads=1 --nocapture, on AMD with the setting unset: gpu::recomp::compact::tests 6 passed, shader_cache_tests 16 passed, and gpu::recomp::tests_compact::gpu_compact_nested_dispatch 1 passed (also used --exact for this last test). Zero failed, ignored, or skipped in each run.
  • cargo test --locked -p xcl --test compact_auto_gpu_probe -- --exact auto_compact_at_actual_case_boundary --test-threads=1 --nocapture passed on both GPUs with XCL_COMPACT_NEST=0, auto, and 32 in separate processes (1 passed, 0 failed, 0 ignored, 0 skipped per run). The temporary probe built two synthetic RDNA2 programs with exactly 511 and 512 distinct cases. Each nonterminal block adds a distinct literal to v0 and branches to the next block. It used the public compact translator, DXC, the DXIL validator, and D3D12 readback.

At 511 cases, auto produced byte-identical HLSL to the flat 0 control. At 512, it produced 16 groups of 32 and byte-identical HLSL to the fixed 32 control. All 64 lanes matched an independent CPU sum for both programs in every mode on both GPUs. For each program and GPU, the full result buffer and memory were byte-identical across the three modes.

For this particular 512-case program, grouped DXIL was larger than the flat control (36,392 to 41,284 bytes on AMD and 37,512 to 42,424 on NVIDIA).

Not tested

Controlled cold-driver compile times, GPU execution performance, real titles, RADV, and the full workspace test suite. The two programs are synthetic and exercise correctness at the cutoff.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) prepared and ran the temporary probe, checked the outputs, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7149257035 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7149257035). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T01:09:05Z. --- **Tested** Independent `XCL_COMPACT_NEST=auto` GPU check on exact head `480143a6583b2f4ca418898cd7ba224d62b83f51`. Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62, native wave64), and GeForce RTX 5090 (32.0.16.1742, split wave64). Rust 1.100.0 x64 MSVC and DXC/DXIL 1.8.2502.11. Unoptimized dev/test profiles with debug info off. - `cargo build --workspace --locked` passed. - `cargo test --locked -p xcl --lib <filter> -- --test-threads=1 --nocapture`, on AMD with the setting unset: `gpu::recomp::compact::tests` 6 passed, `shader_cache_tests` 16 passed, and `gpu::recomp::tests_compact::gpu_compact_nested_dispatch` 1 passed (also used `--exact` for this last test). Zero failed, ignored, or skipped in each run. - `cargo test --locked -p xcl --test compact_auto_gpu_probe -- --exact auto_compact_at_actual_case_boundary --test-threads=1 --nocapture` passed on both GPUs with `XCL_COMPACT_NEST=0`, `auto`, and `32` in separate processes (1 passed, 0 failed, 0 ignored, 0 skipped per run). The temporary probe built two synthetic RDNA2 programs with exactly 511 and 512 distinct cases. Each nonterminal block adds a distinct literal to v0 and branches to the next block. It used the public compact translator, DXC, the DXIL validator, and D3D12 readback. At 511 cases, `auto` produced byte-identical HLSL to the flat `0` control. At 512, it produced 16 groups of 32 and byte-identical HLSL to the fixed `32` control. All 64 lanes matched an independent CPU sum for both programs in every mode on both GPUs. For each program and GPU, the full result buffer and memory were byte-identical across the three modes. For this particular 512-case program, grouped DXIL was larger than the flat control (36,392 to 41,284 bytes on AMD and 37,512 to 42,424 on NVIDIA). **Not tested** Controlled cold-driver compile times, GPU execution performance, real titles, RADV, and the full workspace test suite. The two programs are synthetic and exercise correctness at the cutoff. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) prepared and ran the temporary probe, checked the outputs, and drafted this report.
raylitebull commented 2026-11-25 02:09:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T02:06:08Z.


Independent AMD RDNA2 + NVIDIA RTX 5090 checks on \480143a\ look great. Currently \CONFLICTING\ and Draft — once the base stack (#1316\ / #1448\ / #1692) is rebased onto \main, please rebase #2018\ and mark Ready for review so \Build and test\ CI can run.

<!-- greyfinch-sync:ivall/xcl:comment:7150318606 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7150318606). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T02:06:08Z. --- Independent AMD RDNA2 + NVIDIA RTX 5090 checks on \480143a\ look great. Currently \CONFLICTING\ and Draft — once the base stack (\#1316\ / \#1448\ / \#1692\) is rebased onto \main\, please rebase \#2018\ and mark Ready for review so \Build and test\ CI can run.
DavidM1911 commented 2026-11-25 04:10:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T04:01:35Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7152459606 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7152459606). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:01:35Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
Pipodi commented 2026-11-25 04:10:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-25T04:05:54Z.


@DavidM1911, thanks for checking. Yes, the conflict is expected. This PR is stacked on #1316 (964f5ed), and #1316 conflicts with current main. #1448, #1692 and #2025 above it are drafts for the same reason. I'll rebase the whole stack as soon as #1316 is rebased, then post the new heads.

If you'd like to test before then, build the branch as it is (on main 266b845). In that case please name the head commit you tested in the report.

AI use: Claude Code with Claude Opus 5.5.

<!-- greyfinch-sync:ivall/xcl:comment:7152526282 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7152526282). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-25T04:05:54Z. --- @DavidM1911, thanks for checking. Yes, the conflict is expected. This PR is stacked on #1316 (`964f5ed`), and #1316 conflicts with current `main`. #1448, #1692 and #2025 above it are drafts for the same reason. I'll rebase the whole stack as soon as #1316 is rebased, then post the new heads. If you'd like to test before then, build the branch as it is (on `main` `266b845`). In that case please name the head commit you tested in the report. AI use: Claude Code with Claude Opus 5.5.
itsSio commented 2026-11-25 10:10:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T09:51:06Z.


Tested

Independent check requested in #1269 at clean head 5040ea1ef4807af4732dcbfaed1789226c39c4e0. Windows 11 Pro 26200 on both systems; x64 MSVC, unoptimized dev/test with debug info disabled. cargo build --workspace --locked passed on both. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture:

GPU / driver CPU, RAM, toolchain Passed / failed / ignored Runtime SKIPPED
RTX 5080 / 32.0.16.1088 Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 1190 / 0 / 46 26
RTX 2080 SUPER / 32.0.16.1088 Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 1187 / 3 / 46 28

Both ran and passed auto_nest_starts_at_the_case_threshold and translated_compact_and_normal_forms_are_kept_apart. Runtime skips on both: 21 native-wave64 cases, three per-lane f16/f32 refusals, one unavailable driver-cache control, and one unavailable heap-windows case. The RTX 2080 SUPER also had two missing D3D12 debug-layer skips.

cargo test -p xcl --lib --locked gpu::recomp::tests_compact -- --test-threads=1 --nocapture: 25 / 0 / 0, no runtime skips on the Radeon RDNA2 iGPU (32.0.21043.5001, Ryzen 7 system), and 25 / 0 / 0, one native-wave64 skip on the RTX 2080 SUPER. These runs left XCL_COMPACT_NEST unset; the threshold unit test exercises auto explicitly.

The RTX 2080 SUPER failed placed_title_textures_share_vram_and_preserve_pixels (cubemap VA reuse assertion), transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory (both PoisonError). The same three failures were visible before an earlier run timed out and also on the separate #1338 checkout. That is not a matched-parent comparison, so I am not classifying them as regressions or declaring this suite green. The RTX 5080 workspace and Radeon filter initially aborted with 0xc0000005 in DXC 1.6.2112.16; selecting DXC 1.9.2609.5 via XCL_DXC_DIR resolved both aborts on the same checkout.

Exact-parent follow-up: The original trio matches the symptoms tracked in #718. On each system above, I ran cargo test -p xcl --lib --locked -- --test-threads=4 --nocapture in four separate processes ordered parent (95e8abcfd8eb2da975255e5ea2c85ed2d812f37f), head (5040ea1ef4807af4732dcbfaed1789226c39c4e0), head, parent. Same adapter, DXC and build settings per system; 25 runtime skips per library run.

GPU Parent, run 1 Head, run 1 Head, run 2 Parent, run 2
RTX 5080 1133 / 0 / 26 1134 / 0 / 26 1134 / 0 / 26 1133 / 0 / 26
RTX 2080 SUPER 1133 / 0 / 26 1134 / 0 / 26 1133 / 1 / 26 1133 / 0 / 26

The three original D3D12 failures did not recur on either revision in this sample. The one distinct failure was atomic_writes_preserve_xcltmp_blobs_and_skip_leftover_temps, on the second RTX 2080 SUPER head run. This is an observation, not an attribution to this PR. The original red workspace result is unchanged.

Not tested

Retail smoke, full AMD workspace, opt-in auto on a retail program, performance, or a repeated matched full-workspace comparison.

AI use

Ran via Samaritan:

  • OpenCode, OpenAI GPT-6.2 Sol (openai/gpt-6.2-sol): planned and ran these checks, diagnosed the toolchain issue, verified the saved test logs and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7158886349 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7158886349). Originally posted by [itsSio](https://github.com/itsSio) on 2026-11-25T09:51:06Z. --- **Tested** Independent check requested in #1269 at clean head `5040ea1ef4807af4732dcbfaed1789226c39c4e0`. Windows 11 Pro 26200 on both systems; x64 MSVC, unoptimized dev/test with debug info disabled. `cargo build --workspace --locked` passed on both. `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture`: | GPU / driver | CPU, RAM, toolchain | Passed / failed / ignored | Runtime SKIPPED | | --- | --- | ---: | ---: | | RTX 5080 / `32.0.16.1088` | Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 | **1190 / 0 / 46** | 26 | | RTX 2080 SUPER / `32.0.16.1088` | Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 | **1187 / 3 / 46** | 28 | Both ran and passed `auto_nest_starts_at_the_case_threshold` and `translated_compact_and_normal_forms_are_kept_apart`. Runtime skips on both: 21 native-wave64 cases, three per-lane f16/f32 refusals, one unavailable driver-cache control, and one unavailable heap-windows case. The RTX 2080 SUPER also had two missing D3D12 debug-layer skips. `cargo test -p xcl --lib --locked gpu::recomp::tests_compact -- --test-threads=1 --nocapture`: **25 / 0 / 0**, no runtime skips on the Radeon RDNA2 iGPU (`32.0.21043.5001`, Ryzen 7 system), and **25 / 0 / 0**, one native-wave64 skip on the RTX 2080 SUPER. These runs left `XCL_COMPACT_NEST` unset; the threshold unit test exercises `auto` explicitly. The RTX 2080 SUPER failed `placed_title_textures_share_vram_and_preserve_pixels` (cubemap VA reuse assertion), `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory` (both `PoisonError`). The same three failures were visible before an earlier run timed out and also on [the separate #1338 checkout](https://github.com/xcl-dev/xcl/pull/1338#issuecomment-7158411330). That is not a matched-parent comparison, so I am not classifying them as regressions or declaring this suite green. The RTX 5080 workspace and Radeon filter initially aborted with `0xc0000005` in DXC 1.6.2112.16; selecting DXC 1.9.2609.5 via `XCL_DXC_DIR` resolved both aborts on the same checkout. **Exact-parent follow-up:** The original trio matches the symptoms tracked in #718. On each system above, I ran `cargo test -p xcl --lib --locked -- --test-threads=4 --nocapture` in four separate processes ordered parent (`95e8abcfd8eb2da975255e5ea2c85ed2d812f37f`), head (`5040ea1ef4807af4732dcbfaed1789226c39c4e0`), head, parent. Same adapter, DXC and build settings per system; 25 runtime skips per library run. | GPU | Parent, run 1 | Head, run 1 | Head, run 2 | Parent, run 2 | | --- | --- | --- | --- | --- | | RTX 5080 | 1133 / 0 / 26 | 1134 / 0 / 26 | 1134 / 0 / 26 | 1133 / 0 / 26 | | RTX 2080 SUPER | 1133 / 0 / 26 | 1134 / 0 / 26 | 1133 / 1 / 26 | 1133 / 0 / 26 | The three original D3D12 failures did not recur on either revision in this sample. The one distinct failure was `atomic_writes_preserve_xcltmp_blobs_and_skip_leftover_temps`, on the second RTX 2080 SUPER head run. This is an observation, not an attribution to this PR. The original red workspace result is unchanged. **Not tested** Retail smoke, full AMD workspace, opt-in `auto` on a retail program, performance, or a repeated matched full-workspace comparison. **AI use** Ran via Samaritan: - OpenCode, OpenAI GPT-6.2 Sol (`openai/gpt-6.2-sol`): planned and ran these checks, diagnosed the toolchain issue, verified the saved test logs and wrote this report.
DavidM1911 commented 2026-11-26 01:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:49:46Z.


Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7179154580 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7179154580). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T00:49:46Z. --- Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
Pipodi commented 2026-11-27 15:46:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T15:46:56Z.


@DavidM1911 Rebased onto current main (623d02e4); the suite rerun and the smoke pair on the new head are updated in the description.

<!-- greyfinch-sync:ivall/xcl:comment:7222474689 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7222474689). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-27T15:46:56Z. --- @DavidM1911 Rebased onto current main (623d02e4); the suite rerun and the smoke pair on the new head are updated in the description.
Pipodi commented 2026-11-27 19:11:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T19:11:34Z.


@DavidM1911 rebased onto current main (6089122a); new head 78f7e96c. The whole suite and a smoke pair were rerun, see the description. Ready for a retest when you have time.

AI use: Claude Code (Claude Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:comment:7226281435 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7226281435). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-27T19:11:34Z. --- @DavidM1911 rebased onto current main (6089122a); new head `78f7e96c`. The whole suite and a smoke pair were rerun, see the description. Ready for a retest when you have time. AI use: Claude Code (Claude Opus 5.5)
thehollowedone commented 2026-11-28 11:43:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T11:43:42Z.


Independent Windows/NVIDIA check of #2018 head e2ab3ca2, including its stacked compact backend, on the RTX 3080 Ti.

Tested: Windows 11 build 26300, RTX 3080 Ti 12 GB / driver 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, DXC 1.8.2502.11. cargo build --offline --locked -j 4 --workspace passed. cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 completed with 2,162 passed, 10 failed, 48 ignored, and 26 explicit SKIPPED notices. The 10 failures are the same named tests in the clean-main e429936c control run on this machine with the identical command: 2,125 passed, 10 failed, 48 ignored, 25 skip notices. The additional skip here is gpu_compact_native_wave64_form because this GPU has no native wave64.

With XCL_COMPACT_NEST=auto in a fresh process, cargo test --offline --locked -j 4 -p xcl --lib compact -- --test-threads=4 passed 52/0/0 in 8.08 s, with one explicit skip (gpu_compact_native_wave64_form: no wave64). The new auto_nest_starts_at_the_case_threshold and cache-identity tests passed. gpu_compact_nested_dispatch also ran and passed with no skip. I reviewed the top commit's opt-in routing and cache-key separation and found no new correctness issue.

Not tested: cold NVIDIA driver compile time for a 512–697-case program, GPU output specifically selected by XCL_COMPACT_NEST=auto at that threshold, a title run, AMD/Intel. The existing nested GPU test uses an explicit group size, while the new test verifies the auto decision and generated HLSL. gpu_compact_sample_big_cs does no sample run without XCL_SAMPLE_BIG_CS; I did not set that variable. These results establish current-head test parity on this card; they do not measure the performance threshold.

AI use: Codex (GPT-6.2 Sol) built and ran the suite and compared it with the exact-main control; Codex (GPT-6.2 Astra) independently reviewed the top commit's routing and cache logic.

<!-- greyfinch-sync:ivall/xcl:comment:7238743139 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7238743139). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T11:43:42Z. --- Independent Windows/NVIDIA check of [#2018 head `e2ab3ca2`](https://github.com/xcl-dev/xcl/commit/e2ab3ca2dffb1142f0193ac6c00914ec86259a52), including its stacked compact backend, on the RTX 3080 Ti. **Tested:** Windows 11 build 26300, RTX 3080 Ti 12 GB / driver 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, DXC 1.8.2502.11. `cargo build --offline --locked -j 4 --workspace` passed. `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` completed with **2,162 passed, 10 failed, 48 ignored, and 26 explicit `SKIPPED` notices**. The 10 failures are the same named tests in the [clean-main `e429936c` control](https://github.com/xcl-dev/xcl/pull/1111#issuecomment-7238499373) run on this machine with the identical command: 2,125 passed, 10 failed, 48 ignored, 25 skip notices. The additional skip here is `gpu_compact_native_wave64_form` because this GPU has no native wave64. With `XCL_COMPACT_NEST=auto` in a fresh process, `cargo test --offline --locked -j 4 -p xcl --lib compact -- --test-threads=4` passed **52/0/0** in 8.08 s, with one explicit skip (`gpu_compact_native_wave64_form`: no wave64). The new `auto_nest_starts_at_the_case_threshold` and cache-identity tests passed. `gpu_compact_nested_dispatch` also ran and passed with no skip. I reviewed the top commit's opt-in routing and cache-key separation and found no new correctness issue. **Not tested:** cold NVIDIA driver compile time for a 512–697-case program, GPU output specifically selected by `XCL_COMPACT_NEST=auto` at that threshold, a title run, AMD/Intel. The existing nested GPU test uses an explicit group size, while the new test verifies the `auto` decision and generated HLSL. `gpu_compact_sample_big_cs` does no sample run without `XCL_SAMPLE_BIG_CS`; I did not set that variable. These results establish current-head test parity on this card; they do not measure the performance threshold. AI use: Codex (GPT-6.2 Sol) built and ran the suite and compared it with the exact-main control; Codex (GPT-6.2 Astra) independently reviewed the top commit's routing and cache logic.
Foniass commented 2026-12-01 07:12:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:12:11Z.


Triage (#1607) – head 5c14a4a

Stacked on #1692 (on #1448 and #1316's rebased commits); only 5c14a4a belongs here, and #2025 is stacked on it to make it the default. The lines shared with #1692, #1448, #1316, #1315, #1548 and #2025 are the stack's base commits; no other PR adds XCL_COMPACT_NEST=auto (Nest::Auto, resolve_nest in compact_at, the _c_na cache tag).
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303765761 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7303765761). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:12:11Z. --- **Triage (#1607)** – head 5c14a4a Stacked on #1692 (on #1448 and #1316's rebased commits); only `5c14a4a` belongs here, and #2025 is stacked on it to make it the default. The lines shared with #1692, #1448, #1316, #1315, #1548 and #2025 are the stack's base commits; no other PR adds `XCL_COMPACT_NEST=auto` (`Nest::Auto`, `resolve_nest` in `compact_at`, the `_c_na` cache tag). No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
fromthemoonx commented 2026-12-01 14:36:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T14:36:55Z.


Rerun on the new head (f141b9d5): this PR's commit is unchanged; it was rebased onto #1692's new head 5d9d3209. The earlier report, on 5c14a4aa, is below.

merge-check
base: 6bfb5c5153
head: f141b9d51d
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2943 passed, 0 failed, 51 ignored (#1692's new head merged alone: 2941 passed, 1 failed (xma2, the #3551 race), so 2942 tests; base: 2904); SKIPPED: 26 (23 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as #1692 merged alone; failing: none
review: git range-diff: f141b9d5 = 5c14a4aa, and the stack below changed only #1692's warm-settings test (auto -> 32). The earlier review stands, except one line: no warm-settings test uses auto any more. That is fine, because the warm key compares raw values and auto entries have their own _c_na name.

  • tests_compact:: + compact:: with XCL_COMPACT_NEST=auto: 34 passed, 3 of 3 runs.
    performance: as below (opt-in; the default path is unchanged).
    verdict: safe to merge
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
Earlier report on 5c14a4aa (base b2b1f109)
merge-check
base: b2b1f109d27e746a62ec95b04dd1f9924452e682
head: 5c14a4aa1c4d6ffc4581f29d5f73bd0bc78d669e
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2941 passed, 0 failed, 51 ignored (#1692's head merged alone: 2940; base: 2902); SKIPPED: 26 (23 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as #1448 / #1692 merged alone; failing: none
review: read this PR's commit on top of #1692 (2 files, +88 -18; my merge-checks on #1448 and #1692 cover the rest of the stack). No correctness problem found. `XCL_COMPACT_NEST=auto` (any case) nests a compact program with groups of 32 once it has 512 cases or more, and leaves it flat below; unset is still flat, so the default does not change. `auto` entries get their own `_c_na` disk name.
- `tests_compact::` + `compact::` with the lib binary: 32 passed, 0 failed with `XCL_COMPACT_NEST=auto` and with `XCL_COMPACT_NEST=32` on this wave32 GPU. The test programs are small, so under `auto` they most likely stay flat; the `32` run has every compact program nested.
- Mutation: `auto` never nesting (`resolve_nest` returns 0 at 512+ cases) fails `auto_nest_starts_at_the_case_threshold`. Good.
- `warm_settings_keep_compact_nest_switch` (from #1692) uses `auto`, which this PR now accepts.
- No retail title on this machine: a real 512+ case program was not compiled or run here; the cold-driver timings in the code comment are the author's (RTX 4090, RADV).
performance: not measured here. Opt-in; the default path is unchanged against #1692.
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
<!-- greyfinch-sync:ivall/xcl:comment:7314545542 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7314545542). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-01T14:36:55Z. --- Rerun on the new head (`f141b9d5`): this PR's commit is unchanged; it was rebased onto #1692's new head `5d9d3209`. The earlier report, on `5c14a4aa`, is below. merge-check base: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c head: f141b9d51d721161184bff58ac93567a76296518 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2943 passed, 0 failed, 51 ignored (#1692's new head merged alone: 2941 passed, 1 failed (xma2, the #3551 race), so 2942 tests; base: 2904); SKIPPED: 26 (23 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as #1692 merged alone; failing: none review: `git range-diff`: `f141b9d5` = `5c14a4aa`, and the stack below changed only #1692's warm-settings test (`auto` -> `32`). The earlier review stands, except one line: no warm-settings test uses `auto` any more. That is fine, because the warm key compares raw values and `auto` entries have their own `_c_na` name. - `tests_compact::` + `compact::` with `XCL_COMPACT_NEST=auto`: 34 passed, 3 of 3 runs. performance: as below (opt-in; the default path is unchanged). verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5) <details><summary>Earlier report on 5c14a4aa (base b2b1f109)</summary> ```text merge-check base: b2b1f109d27e746a62ec95b04dd1f9924452e682 head: 5c14a4aa1c4d6ffc4581f29d5f73bd0bc78d669e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2941 passed, 0 failed, 51 ignored (#1692's head merged alone: 2940; base: 2902); SKIPPED: 26 (23 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as #1448 / #1692 merged alone; failing: none review: read this PR's commit on top of #1692 (2 files, +88 -18; my merge-checks on #1448 and #1692 cover the rest of the stack). No correctness problem found. `XCL_COMPACT_NEST=auto` (any case) nests a compact program with groups of 32 once it has 512 cases or more, and leaves it flat below; unset is still flat, so the default does not change. `auto` entries get their own `_c_na` disk name. - `tests_compact::` + `compact::` with the lib binary: 32 passed, 0 failed with `XCL_COMPACT_NEST=auto` and with `XCL_COMPACT_NEST=32` on this wave32 GPU. The test programs are small, so under `auto` they most likely stay flat; the `32` run has every compact program nested. - Mutation: `auto` never nesting (`resolve_nest` returns 0 at 512+ cases) fails `auto_nest_starts_at_the_case_threshold`. Good. - `warm_settings_keep_compact_nest_switch` (from #1692) uses `auto`, which this PR now accepts. - No retail title on this machine: a real 512+ case program was not compiled or run here; the cold-driver timings in the code comment are the author's (RTX 4090, RADV). performance: not measured here. Opt-in; the default path is unchanged against #1692. verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5) ``` </details>
Foniass commented 2026-12-01 21:09:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T21:09:37Z.


Follow-up review (head f141b9d5, since 5c14a4a, diff read, not a merge-check):

  • Triage (stacked on #1692, keep open): still holds. Only f141b9d5 belongs here (88+/18- in gpu/recomp/compact.rs and pso.rs), unchanged since 5c14a4a; the rest of the total is the #1448 / #1692 stack. The only edit below it is #1692's warm-settings test now using 32 instead of auto.

New: none.

Fine: resolve_nest runs in compact_at after the distinct texts are counted, so auto becomes a group size per program; compact_with keeps its signature; the cache tags _c, _c_n<P> and _c_na stay apart, and the translator source hash covers NEST_MIN_CASES and AUTO_GROUP; auto_nest_starts_at_the_case_threshold checks the nested form at the threshold and that one case below gives text identical to the flat form.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7325834292 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7325834292). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T21:09:37Z. --- Follow-up review (head f141b9d5, since 5c14a4a, diff read, not a merge-check): - **Triage (stacked on #1692, keep open):** still holds. Only `f141b9d5` belongs here (88+/18- in `gpu/recomp/compact.rs` and `pso.rs`), unchanged since `5c14a4a`; the rest of the total is the #1448 / #1692 stack. The only edit below it is #1692's warm-settings test now using `32` instead of `auto`. New: none. Fine: `resolve_nest` runs in `compact_at` after the distinct texts are counted, so `auto` becomes a group size per program; `compact_with` keeps its signature; the cache tags `_c`, `_c_n<P>` and `_c_na` stay apart, and the translator source hash covers `NEST_MIN_CASES` and `AUTO_GROUP`; `auto_nest_starts_at_the_case_threshold` checks the nested form at the threshold and that one case below gives text identical to the flat form. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Pipodi commented 2026-12-02 15:59:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-02T15:59:18Z.


Closing: main's direct DXIL path now has its own compact dispatch and nesting (dxil/kernel.rs, #2034, #2174), and with the defaults this stack's goes_direct(direct_on, compact_routed) (pso.rs) takes the programs compact_wanted picks away from it and sends them back through HLSL and DXC, the form that never finished compiling on AMD (ActivateRays, @Nmopqr333). Foniass's #1316 triage reached the same conclusion. If the packing across words in pick_targets still pays off, it can come back as a small PR against the direct translator.

AI use: Claude Code, Claude Opus 5.5 audited the stack; closed by the author.

<!-- greyfinch-sync:ivall/xcl:comment:7351262382 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2018#issuecomment-7351262382). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-12-02T15:59:18Z. --- Closing: main's direct DXIL path now has its own compact dispatch and nesting (`dxil/kernel.rs`, #2034, #2174), and with the defaults this stack's `goes_direct(direct_on, compact_routed)` (`pso.rs`) takes the programs `compact_wanted` picks away from it and sends them back through HLSL and DXC, the form that never finished compiling on AMD (ActivateRays, @Nmopqr333). Foniass's #1316 triage reached the same conclusion. If the packing across words in `pick_targets` still pays off, it can come back as a small PR against the direct translator. AI use: Claude Code, Claude Opus 5.5 audited the stack; closed by the author.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2008
No description provided.