Recompiler: half context and second VGPR bank for folded wave64 (no behaviour change) #3529

Closed
throny wants to merge 1 commit from upstream-pr/3529 into main
throny commented 2026-11-30 14:59:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T14:59:35Z.


Preparation for folded wave64 (one hardware lane carries console lanes t and t + 32, instead of
two wave32 halves that meet through exchanges). Lw learns which console half (0 or 1) the
instruction being lowered addresses; half 0 is the only one anything selects, so every program
lowers as before. Part of #3011 (C57, step 1/2 of the design note).

What is in it

  • crates/xcl/src/gpu/dxil/lower.rs: Lw::bank (the console half being lowered) and Lw::fold
    (the lane identity of both halves, LaneIds; None everywhere today). Lw::set_half(h) selects
    the half: the VGPR bank and, with a folded context, lane / lane31 / upper / half.
    Lw::vvar(n) is the SSA variable of VGPR n in the selected bank (VAR_VGPR or the new
    VAR_VGPR_HI = 512, in the free range below VAR_TMP); vreg reads through it. A second-bank
    variable starts at 0 (it is not in io).
  • lower.rs, lower_valu.rs, lower_mem.rs, lower_image.rs, lower_wide.rs: the 17 VGPR writes
    that spelled VAR_VGPR + n go through vvar(n).
  • lanes.rs: the lanebit cache key includes the bank (the two halves test different bits of the
    same mask in one block); so does the own_bits key (new on main since the design note).
  • kernel.rs: Lw::new starts with no folded context and bank 0.
  • Tests in lower.rs (half_tests): half_0_lowers_as_no_half_context_does (three programs,
    wave32 and wave64: the container is byte-identical with set_half(0) before every instruction,
    with and without a folded context) and half_1_addresses_the_second_bank_and_its_own_lane.

No behaviour change, and how that was checked: besides the test above, a throw-away test (not in
the PR) hashed the containers of 6 programs (VALU, masks, lane reads, memory, LDS, image store)
x wave32 / wave64 / split wave64 x kernel, compute [32,1,1] [64,1,1] [8,8,4] and mesh (128
threads) entries: 90 containers, all translated, 90 distinct hashes, identical on main 0fe06eb0
and on this change before its rebase. The rebase onto 9dfbe3ea also keys own_bits (new on main
since) by the bank; that hash comparison was not repeated after the rebase, only half_tests.

Left as it is, for the PRs that use the second bank: store_registers (kernel epilogue) and
top_vgpr (relative moves) know bank 0 only; the folded form refuses relative moves by design.
The compact form and the dispatch chain were not checked for the second bank.

Tested

  • NVIDIA GeForce RTX 4080 16 GB (driver 621.40), i9-12900K, Windows 11 build 26300, rustc 1.100.0 (0ef1bc386 2026-11-09), debug for the tests, release for the smoke runs. Nothing else was on the GPU.
  • Step's own tests: cargo test -p xcl --lib -j 12 -- half_tests gpu::dxil --test-threads=4: 308 passed, 1 failed (the resinfo_d16 test below), 3 ignored
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 2887 passed, 1 failed, 51 ignored
  • The 1 failure, gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 ("2D D16 resinfo clobbered v2/v3"), fails the same way on origin/main 9dfbe3ea (cargo test -p xcl --lib -- gpu_direct_image_get_resinfo_d16: 0 passed, 1 failed), so it is not from this PR. Not looked into further.
  • SKIPPED on this adapter (32-lane waves only): the wave64 variants of gpu::recomp::lower / lower_dxil tests (no wave64), gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole, two heap-window tests (no heap windows), shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (driver cache cannot be disabled: Developer Mode)

Regression run

  • main 9dfbe3ea (scripts/smoke.ps1 -Game <title>, 60 s):
xcl-smoke v1
commit: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b
gpu: NVIDIA GeForce RTX 4080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1626 (PresentX 1626)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16011 MB
  • this PR's head commit (clean tree, committed):
xcl-smoke v1
commit: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2
gpu: NVIDIA GeForce RTX 4080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1679 (PresentX 1679)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15328 MB
  • scripts/smoke.ps1 sets XCL_NETWORK, XCL_RUN_SECONDS and XCL_ACTIVITY before it starts xcl.exe, so the child process gets them (the run ended after 60 s with exit 0). The runs used -Xcl with a release build of each commit in its own target directory.

Not tested

  • The smoke run is one title for 60 s; it does not exercise the code of this PR (nothing selects the folded form yet).
  • AMD and Intel GPUs; a wave64-capable adapter.
  • Half 1 on the GPU: nothing can select it yet, the test only checks which variables and which
    lane identity it addresses.

AI use

  • Claude Code: Claude Fable 5.2 wrote the code and the tests, Claude Opus 5.5 reviewed them independently, Claude Sonnet 5.5 rebased them onto main 9dfbe3ea, ran the suite and prepared this PR.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5567762688 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3529). Originally posted by [throny](https://github.com/throny) on 2026-11-30T14:59:35Z. --- Preparation for folded wave64 (one hardware lane carries console lanes t and t + 32, instead of two wave32 halves that meet through exchanges). `Lw` learns which console half (0 or 1) the instruction being lowered addresses; half 0 is the only one anything selects, so every program lowers as before. Part of #3011 (C57, step 1/2 of the design note). **What is in it** - `crates/xcl/src/gpu/dxil/lower.rs`: `Lw::bank` (the console half being lowered) and `Lw::fold` (the lane identity of both halves, `LaneIds`; `None` everywhere today). `Lw::set_half(h)` selects the half: the VGPR bank and, with a folded context, `lane` / `lane31` / `upper` / `half`. `Lw::vvar(n)` is the SSA variable of VGPR `n` in the selected bank (`VAR_VGPR` or the new `VAR_VGPR_HI` = 512, in the free range below `VAR_TMP`); `vreg` reads through it. A second-bank variable starts at 0 (it is not in `io`). - `lower.rs`, `lower_valu.rs`, `lower_mem.rs`, `lower_image.rs`, `lower_wide.rs`: the 17 VGPR writes that spelled `VAR_VGPR + n` go through `vvar(n)`. - `lanes.rs`: the `lanebit` cache key includes the bank (the two halves test different bits of the same mask in one block); so does the `own_bits` key (new on `main` since the design note). - `kernel.rs`: `Lw::new` starts with no folded context and bank 0. - Tests in `lower.rs` (`half_tests`): `half_0_lowers_as_no_half_context_does` (three programs, wave32 and wave64: the container is byte-identical with `set_half(0)` before every instruction, with and without a folded context) and `half_1_addresses_the_second_bank_and_its_own_lane`. No behaviour change, and how that was checked: besides the test above, a throw-away test (not in the PR) hashed the containers of 6 programs (VALU, masks, lane reads, memory, LDS, image store) x wave32 / wave64 / split wave64 x kernel, compute `[32,1,1]` `[64,1,1]` `[8,8,4]` and mesh (128 threads) entries: 90 containers, all translated, 90 distinct hashes, identical on `main` 0fe06eb0 and on this change before its rebase. The rebase onto 9dfbe3ea also keys `own_bits` (new on `main` since) by the bank; that hash comparison was not repeated after the rebase, only `half_tests`. Left as it is, for the PRs that use the second bank: `store_registers` (kernel epilogue) and `top_vgpr` (relative moves) know bank 0 only; the folded form refuses relative moves by design. The compact form and the dispatch chain were not checked for the second bank. **Tested** - NVIDIA GeForce RTX 4080 16 GB (driver 621.40), i9-12900K, Windows 11 build 26300, rustc 1.100.0 (0ef1bc386 2026-11-09), debug for the tests, release for the smoke runs. Nothing else was on the GPU. - Step's own tests: `cargo test -p xcl --lib -j 12 -- half_tests gpu::dxil --test-threads=4`: 308 passed, 1 failed (the `resinfo_d16` test below), 3 ignored - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: 2887 passed, 1 failed, 51 ignored - The 1 failure, `gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16` ("2D D16 resinfo clobbered v2/v3"), fails the same way on `origin/main` 9dfbe3ea (`cargo test -p xcl --lib -- gpu_direct_image_get_resinfo_d16`: 0 passed, 1 failed), so it is not from this PR. Not looked into further. - `SKIPPED` on this adapter (32-lane waves only): the wave64 variants of `gpu::recomp::lower` / `lower_dxil` tests (no wave64), `gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole`, two heap-window tests (no heap windows), `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` (driver cache cannot be disabled: Developer Mode) **Regression run** - main 9dfbe3ea (`scripts/smoke.ps1 -Game <title>`, 60 s): ``` xcl-smoke v1 commit: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b gpu: NVIDIA GeForce RTX 4080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1626 (PresentX 1626) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16011 MB ``` - this PR's head commit (clean tree, committed): ``` xcl-smoke v1 commit: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2 gpu: NVIDIA GeForce RTX 4080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1679 (PresentX 1679) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15328 MB ``` - `scripts/smoke.ps1` sets `XCL_NETWORK`, `XCL_RUN_SECONDS` and `XCL_ACTIVITY` before it starts `xcl.exe`, so the child process gets them (the run ended after 60 s with exit 0). The runs used `-Xcl` with a release build of each commit in its own target directory. **Not tested** - The smoke run is one title for 60 s; it does not exercise the code of this PR (nothing selects the folded form yet). - AMD and Intel GPUs; a wave64-capable adapter. - Half 1 on the GPU: nothing can select it yet, the test only checks which variables and which lane identity it addresses. **AI use** - Claude Code: Claude Fable 5.2 wrote the code and the tests, Claude Opus 5.5 reviewed them independently, Claude Sonnet 5.5 rebased them onto `main` 9dfbe3ea, ran the suite and prepared this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
KDenKC commented 2026-11-30 17:03:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-30T17:03:47Z.


merge-check
base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b
head: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (leaving out 3 uma_driver tests this VM cannot run: a_refused_gpu_upload_segment_becomes_custom, mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment, failed_restore_stops_before_importing_an_unbacked_window) -> 2879 passed, 6 failed, 51 ignored; SKIPPED: 28 (22 no wave64, 2 no heap windows, 3 no debug layer, 1 driver cache cannot be disabled), the same 28 as on the base; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels, the 3 title_textures::tests::stream_recheck_* tests, test_title_runs_and_game_folder_is_untouched, all 6 failing on the base alone too (base 9dfbe3ea on the same machine: 2877 passed, 6 failed, 51 ignored, same 28 SKIPPED). The PR's tests alone (`-- half_`): 16 passed, 0 failed.
review: none blocking; the whole diff read (7 files). The second VGPR bank sits at SSA variables 512..767: the highest fixed variable below it is VAR_IMG_WRITE + 15 = 407 and the temporaries start at VAR_TMP = 1024, so it overlaps nothing; Init gives the bank zeros (it is not in io). vreg/write go through vvar(), and the exec_cache / own_bits keys gain the bank, so half 1 cannot reuse half 0's cached EXEC bit. set_half(0) without a folded context leaves lane/lane31/upper/half as they are, and half_0_lowers_as_no_half_context_does checks the container is byte for byte the plain one for three programs, wave32 and wave64. Nothing selects half 1 or a folded context outside the tests.
performance: none expected: no instruction's lowering changes (bank stays 0, the container is byte-identical in the PR's own test); one more key field in two hash maps. Not measured in a game run.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3090 24 GB (VM), driver 621.24 (32.0.16.2124), Intel i7-10700T, Windows 11 26300.9974 / Claude Code, Claude Opus 5.5

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7285659735 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3529#issuecomment-7285659735). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-30T17:03:47Z. --- ```text merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 (leaving out 3 uma_driver tests this VM cannot run: a_refused_gpu_upload_segment_becomes_custom, mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment, failed_restore_stops_before_importing_an_unbacked_window) -> 2879 passed, 6 failed, 51 ignored; SKIPPED: 28 (22 no wave64, 2 no heap windows, 3 no debug layer, 1 driver cache cannot be disabled), the same 28 as on the base; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels, the 3 title_textures::tests::stream_recheck_* tests, test_title_runs_and_game_folder_is_untouched, all 6 failing on the base alone too (base 9dfbe3ea on the same machine: 2877 passed, 6 failed, 51 ignored, same 28 SKIPPED). The PR's tests alone (`-- half_`): 16 passed, 0 failed. review: none blocking; the whole diff read (7 files). The second VGPR bank sits at SSA variables 512..767: the highest fixed variable below it is VAR_IMG_WRITE + 15 = 407 and the temporaries start at VAR_TMP = 1024, so it overlaps nothing; Init gives the bank zeros (it is not in io). vreg/write go through vvar(), and the exec_cache / own_bits keys gain the bank, so half 1 cannot reuse half 0's cached EXEC bit. set_half(0) without a folded context leaves lane/lane31/upper/half as they are, and half_0_lowers_as_no_half_context_does checks the container is byte for byte the plain one for three programs, wave32 and wave64. Nothing selects half 1 or a folded context outside the tests. performance: none expected: no instruction's lowering changes (bank stays 0, the container is byte-identical in the PR's own test); one more key field in two hash maps. Not measured in a game run. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 3090 24 GB (VM), driver 621.24 (32.0.16.2124), Intel i7-10700T, Windows 11 26300.9974 / Claude Code, Claude Opus 5.5 ``` AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
Foniass commented 2026-12-01 03:12:30 +00:00 (Migrated from github.com)

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


merge-check
base: d0832e614f
head: cc606cc125
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff. The "no behaviour change" claim holds: bank is only ever 0 and fold only None on main's paths, every VAR_VGPR + n write is converted to vvar(n) (which is VAR_VGPR + n for bank 0), the exec_cache / own_bits maps only gain an always-0 key and are never iterated, and nothing uses SSA variables 512-767 (temporaries start at 1024). Findings: (1) half_0_lowers_as_no_half_context_does compares the PR's lowering with itself (set_half(0) without a fold, or fold = [ids, ids]), so it would not catch a wrong VAR_VGPR -> vvar conversion; only the !second_bank assertion guards anything. (2) For step 2, code that still only knows bank 0 beyond store_registers / top_vgpr: recomp/lower_dxil.rs ~280 / ~298, kernel.rs ~419 / ~583, compact.rs ~958, the shared Lw.scratch, and Init::first zeroing bank-1 VGPRs even with ComputeInit launch values. (3) set_half(1) without a folded context is only caught by a debug_assert!. No GPU path a title takes is changed, so no smoke run.
performance: none expected (no change to emitted code on main's paths); not measured
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7299452661 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3529#issuecomment-7299452661). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:12:30Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read the whole diff. The "no behaviour change" claim holds: `bank` is only ever 0 and `fold` only None on main's paths, every `VAR_VGPR + n` write is converted to `vvar(n)` (which is `VAR_VGPR + n` for bank 0), the `exec_cache` / `own_bits` maps only gain an always-0 key and are never iterated, and nothing uses SSA variables 512-767 (temporaries start at 1024). Findings: (1) `half_0_lowers_as_no_half_context_does` compares the PR's lowering with itself (`set_half(0)` without a fold, or `fold = [ids, ids]`), so it would not catch a wrong `VAR_VGPR` -> `vvar` conversion; only the `!second_bank` assertion guards anything. (2) For step 2, code that still only knows bank 0 beyond `store_registers` / `top_vgpr`: recomp/lower_dxil.rs ~280 / ~298, kernel.rs ~419 / ~583, compact.rs ~958, the shared `Lw.scratch`, and `Init::first` zeroing bank-1 VGPRs even with `ComputeInit` launch values. (3) `set_half(1)` without a folded context is only caught by a `debug_assert!`. No GPU path a title takes is changed, so no smoke run. performance: none expected (no change to emitted code on main's paths); not measured verdict: safe to merge hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
brainhay5 commented 2026-12-01 05:24:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T05:24:49Z.


merge-check claim
head: cc606cc125

<!-- greyfinch-sync:ivall/xcl:comment:7301743690 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3529#issuecomment-7301743690). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T05:24:49Z. --- merge-check claim head: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2
brainhay5 commented 2026-12-01 05:25:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T05:25:18Z.


merge-check claim
head: cc606cc125

<!-- greyfinch-sync:ivall/xcl:comment:7301752248 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3529#issuecomment-7301752248). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T05:25:18Z. --- merge-check claim head: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2
brainhay5 commented 2026-12-01 05:40:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T05:40:54Z.


merge-check
base: d0832e614f
head: cc606cc125
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2891 passed, 1 failed, 51 ignored; 29 SKIPPED lines
failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

<!-- greyfinch-sync:ivall/xcl:comment:7302024952 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3529#issuecomment-7302024952). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T05:40:54Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: cc606cc1254765ec08fc2a89a09ac7e7bea42cd2 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2891 passed, 1 failed, 51 ignored; 29 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
throny commented 2026-12-01 06:47:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T06:47:02Z.


Closing our own PR to keep the queue small: measured in the world (see #3543), the folded wave64 form brings no gain on an RTX 4080 (folded programs ran at a median 1.27× their split time, within run-to-run noise), so this code would sit unused in the tree. The branch stays on throny/xcl; reopen if a later measurement (e.g. on another GPU) shows a gain.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7303268082 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3529#issuecomment-7303268082). Originally posted by [throny](https://github.com/throny) on 2026-12-01T06:47:02Z. --- Closing our own PR to keep the queue small: measured in the world (see #3543), the folded wave64 form brings no gain on an RTX 4080 (folded programs ran at a median 1.27× their split time, within run-to-run noise), so this code would sit unused in the tree. The branch stays on throny/xcl; reopen if a later measurement (e.g. on another GPU) shows a gain. AI use: Claude Code (Claude Opus 5.5).

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!3529
No description provided.