xcl shaders --precompile --pipelines: memory grows without bound (84 GB committed after ~17 min) #1657

Closed
opened 2026-11-26 05:00:43 +00:00 by github-bot · 9 comments
Owner

@⁠ThiagoAlexsander on GitHub · 2026-11-24 18:51 UTC · original

What happens

xcl shaders <retail shaders.rpf> --precompile --only cs --pipelines keeps growing in memory for as long as it runs, until Windows is out of commit.

With XCL_PIPELINE_THREADS=4, after about 17 minutes:

  • xcl.exe had a 42.8 GB working set and 83.9 GB committed (private bytes).
  • The machine had 1 GB of RAM free.
  • The precompile had not printed its first progress line yet, and the driver-blob cache had grown from 295 to 564 files.

An earlier attempt with XCL_PIPELINE_THREADS=12 on the same machine ran it out of memory as well.

That is far more than the comment on Pipelines in shaders.rs suggests: about 1.5 GB in the driver for each of the biggest compiles, 4 at once by default. It looks like something is kept for the whole run (translations, compiled DXIL or blobs) instead of being dropped once it has been written to the cache.

Workaround

The precompile is resumable, so I run it in a loop that kills xcl.exe once it passes 25 GB private and starts it again. Each pass skips what is already cached.

--limit N does not help with chunking: it takes the first N records (input.len().min(limit)), so every pass would redo the same programs.

Expected

Memory stays around the working set of the compiles in flight. Programs whose DXIL and driver blob are on disk should no longer hold memory.

XCL version

A local release build of main b7aa9f3 with #541, #1273, #681 and #1656 merged (and, for the later passes, #253). None of those touches shaders.rs or the DXIL cache. I have not yet confirmed it on plain main, and I can do that if it helps.

Environment

  • RTX 5080 16 GB, driver 32.0.16.1088.
  • Ryzen 7 9800X3D (7 compile threads were reported), 62 GB RAM, commit limit 65 GB.
  • Windows 11 Pro 26300, Rust 1.100.0, DXC 1.8.2502 from the Windows SDK.
  • Input: the retail title's 1.0.2.1 shaders.rpf (26,503 records).

AI use

Claude Code (Claude Opus 5.5) ran this and wrote the report. I approved filing it.

**@⁠ThiagoAlexsander** on GitHub · 2026-11-24 18:51 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657) ### What happens `xcl shaders <retail shaders.rpf> --precompile --only cs --pipelines` keeps growing in memory for as long as it runs, until Windows is out of commit. With `XCL_PIPELINE_THREADS=4`, after about 17 minutes: - `xcl.exe` had a **42.8 GB working set and 83.9 GB committed** (private bytes). - The machine had **1 GB of RAM free**. - The precompile had not printed its first progress line yet, and the driver-blob cache had grown from 295 to 564 files. An earlier attempt with `XCL_PIPELINE_THREADS=12` on the same machine ran it out of memory as well. That is far more than the comment on `Pipelines` in `shaders.rs` suggests: about 1.5 GB in the driver for each of the biggest compiles, 4 at once by default. It looks like something is kept for the whole run (translations, compiled DXIL or blobs) instead of being dropped once it has been written to the cache. ### Workaround The precompile is resumable, so I run it in a loop that kills `xcl.exe` once it passes 25 GB private and starts it again. Each pass skips what is already cached. `--limit N` does not help with chunking: it takes the first N records (`input.len().min(limit)`), so every pass would redo the same programs. ### Expected Memory stays around the working set of the compiles in flight. Programs whose DXIL and driver blob are on disk should no longer hold memory. ### XCL version A local release build of `main` `b7aa9f3` with #541, #1273, #681 and #1656 merged (and, for the later passes, #253). None of those touches `shaders.rs` or the DXIL cache. I have not yet confirmed it on plain `main`, and I can do that if it helps. ### Environment - RTX 5080 16 GB, driver 32.0.16.1088. - Ryzen 7 9800X3D (7 compile threads were reported), 62 GB RAM, commit limit 65 GB. - Windows 11 Pro 26300, Rust 1.100.0, DXC 1.8.2502 from the Windows SDK. - Input: the retail title's 1.0.2.1 `shaders.rpf` (26,503 records). ### AI use Claude Code (Claude Opus 5.5) ran this and wrote the report. I approved filing it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:43 +00:00
Author
Owner

@⁠coenflict on GitHub · 2026-11-24 19:10 UTC · original

I have a small patch for the chunking workaround described here. It adds a zero-based --start to xcl shaders --precompile, so --limit can bound successive runs to different input records:

xcl shaders shaders.rpf --precompile --only cs --pipelines --start 0 --limit 1000
xcl shaders shaders.rpf --precompile --only cs --pipelines --start 1000 --limit 1000

Both bounds count input records before --only filters by stage. This lets you restart between chunks and reuse the existing caches. The cause of memory growth within a chunk remains open.

Single-commit patch on my fork, based on upstream c160d86.

Tested

  • .\scripts\test.ps1 --nocapture on 9017f72: 859 reported passes, 0 failures, 42 ignored. Three of the reported passes skipped their GPU work: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64), and heap_window_out_of_memory_falls_back_to_the_switch_form (heap windows disabled).
  • The range regression and four CLI checks on five synthetic folder records passed, including a partial last chunk and an empty range.
  • RTX 5090 (driver 621.40), Ryzen 7 9800X3D, Windows 11 build 26340, Rust 1.97.1 MSVC, DXC 1.9.2602.17, debug build.

Not tested

  • Retail shader pack, memory growth, and retail smoke run.

AI use

  • Codex (gpt-6.2-sol) implemented the patch, ran the tests, and drafted this report.
**@⁠coenflict** on GitHub · 2026-11-24 19:10 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7141719637) I have a small patch for the chunking workaround described here. It adds a zero-based `--start` to `xcl shaders --precompile`, so `--limit` can bound successive runs to different input records: ```powershell xcl shaders shaders.rpf --precompile --only cs --pipelines --start 0 --limit 1000 xcl shaders shaders.rpf --precompile --only cs --pipelines --start 1000 --limit 1000 ``` Both bounds count input records before `--only` filters by stage. This lets you restart between chunks and reuse the existing caches. The cause of memory growth within a chunk remains open. [Single-commit patch on my fork](https://github.com/coenflict/xcl/commit/9017f724998d6628830203b54fe0e47de5211172), based on upstream `c160d86`. **Tested** - `.\scripts\test.ps1 --nocapture` on `9017f72`: 859 reported passes, 0 failures, 42 ignored. Three of the reported passes skipped their GPU work: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64), and `heap_window_out_of_memory_falls_back_to_the_switch_form` (heap windows disabled). - The range regression and four CLI checks on five synthetic folder records passed, including a partial last chunk and an empty range. - RTX 5090 (driver 621.40), Ryzen 7 9800X3D, Windows 11 build 26340, Rust 1.97.1 MSVC, DXC 1.9.2602.17, debug build. **Not tested** - Retail shader pack, memory growth, and retail smoke run. **AI use** - Codex (`gpt-6.2-sol`) implemented the patch, ran the tests, and drafted this report.
Author
Owner

@⁠tiagonogueiraa-bit on GitHub · 2026-11-24 19:23 UTC · original

This may be #1307 / #1332 rather than something kept for the whole run. On b7aa9f3 without #1321, record 22619 of the pack (indirect_diffuse_lighting:CS_ScreenProbes_ActivateRays…, a compute program, so it is in --only cs) translates to 148 MB of HLSL, and DXC on it alone goes past 30 GB (#1332). On #1321's head, @⁠Royalflamejlh ran xcl shaders --precompile --only cs --limit 23000: it finished with 843 compiled and a 2.6 GB resident peak, where 930e8b4 was killed at a 30 GB limit after 34 s (#1321). That pass had no --pipelines.

A pass of yours with #1321 merged would tell whether anything is left over from the driver side with --pipelines.

Written with Claude Code (Claude Opus 5.5).

**@⁠tiagonogueiraa-bit** on GitHub · 2026-11-24 19:23 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7142034451) This may be #1307 / #1332 rather than something kept for the whole run. On `b7aa9f3` without #1321, record 22619 of the pack (`indirect_diffuse_lighting:CS_ScreenProbes_ActivateRays…`, a compute program, so it is in `--only cs`) translates to **148 MB of HLSL**, and DXC on it alone goes past 30 GB (#1332). On #1321's head, @⁠Royalflamejlh ran `xcl shaders --precompile --only cs --limit 23000`: it finished with 843 compiled and a 2.6 GB resident peak, where `930e8b4` was killed at a 30 GB limit after 34 s (https://git.gtahub.st/github/xcl-dev--xcl/pulls/1321). That pass had no `--pipelines`. A pass of yours with #1321 merged would tell whether anything is left over from the driver side with `--pipelines`. Written with Claude Code (Claude Opus 5.5).
Author
Owner

@⁠NemesisDawn on GitHub · 2026-11-24 19:33 UTC · original

I looked into the missing progress line mentioned above. On main c160d86, a shader skipped by --only cs can hit a 200-record milestone without printing an update. The attached patch makes progress reporting consistent for filtered, unrecognized, and unreadable records and adds a regression test.

Two isolated Rust checks failed before the fix and passed afterward. git apply --check also passed on c160d86. The patch addresses progress reporting. The memory-growth investigation and full GPU and retail smoke testing remain separate.

AI use: OpenAI Codex (GPT-6, exact variant unavailable) diagnosed the bug, wrote the patch and regression test, and ran the isolated checks.

xcl-precompile-progress.patch

**@⁠NemesisDawn** on GitHub · 2026-11-24 19:33 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7142277395) I looked into the missing progress line mentioned above. On main `c160d86`, a shader skipped by `--only cs` can hit a 200-record milestone without printing an update. The attached patch makes progress reporting consistent for filtered, unrecognized, and unreadable records and adds a regression test. Two isolated Rust checks failed before the fix and passed afterward. `git apply --check` also passed on `c160d86`. The patch addresses progress reporting. The memory-growth investigation and full GPU and retail smoke testing remain separate. AI use: OpenAI Codex (GPT-6, exact variant unavailable) diagnosed the bug, wrote the patch and regression test, and ran the isolated checks. [xcl-precompile-progress.patch](https://github.com/user-attachments/files/35369183/xcl-precompile-progress.patch)
Author
Owner

@⁠JRamos1993 on GitHub · 2026-11-24 19:40 UTC · original

This looks like #1307. One compute program's structured HLSL is about 150 MB, and DXC alone takes tens of GB on it. On main c160d86 here, a cold --precompile --only cs with 8 DXC threads went from 5.7 GB to 39 GB in 30 s, at the point where it picked up that program. With #1321 merged, the same run stayed under 8.7 GB for 10 minutes. Numbers and setup are in my comment on #1321.

AI use: Claude Code with Claude Opus 5.5 ran the measurements and wrote this comment.

**@⁠JRamos1993** on GitHub · 2026-11-24 19:40 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7142421467) This looks like #1307. One compute program's structured HLSL is about 150 MB, and DXC alone takes tens of GB on it. On `main` `c160d86` here, a cold `--precompile --only cs` with 8 DXC threads went from 5.7 GB to 39 GB in 30 s, at the point where it picked up that program. With #1321 merged, the same run stayed under 8.7 GB for 10 minutes. Numbers and setup are in my comment on #1321. AI use: Claude Code with Claude Opus 5.5 ran the measurements and wrote this comment.
Author
Owner

@⁠itsd-effex on GitHub · 2026-11-24 19:43 UTC · original

One more piece next to #1321: several enormous programs at once. #1321 makes ActivateRays small again, but the two other screen-probe programs (ActivateProbes, ActivateProbesTarget) still have about 30 MB of DXIL each and take several GB in DXC. If they compile at the same time, their memory adds up. Under Wine, the admission check (wait_for_memory) doesn't catch it, because the commit headroom it reads includes all of the host's swap.

Measured in xcl pipelines with only these three programs in flight together. Linux, RTX 3080 Ti, 32 GB RAM, a cgroup of 25 GB RAM + 32 GB swap, empty DXIL cache:

tree RAM / swap peak DXIL made
main 25.6 GB (cap) in 23 s / 20.8 GB none
+ #1660 (sources over 8 MB compile one at a time) 11 GB, then 25.6 GB once ActivateRays starts the two probe programs
+ #1660 + #1321 11.4 GB / 5.7 GB all three, in 306 s

Details and tests are in #1660. #1710 (retry after E_OUTOFMEMORY) is the reactive side of the same problem. Under Wine, DXC rarely sees E_OUTOFMEMORY, because the host swaps first.

AI use

  • Claude Code (Claude Opus 5.5) ran the measurement and wrote this comment.
**@⁠itsd-effex** on GitHub · 2026-11-24 19:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7142507810) One more piece next to #1321: **several enormous programs at once.** #1321 makes ActivateRays small again, but the two other screen-probe programs (ActivateProbes, ActivateProbesTarget) still have about 30 MB of DXIL each and take several GB in DXC. If they compile at the same time, their memory adds up. Under Wine, the admission check (`wait_for_memory`) doesn't catch it, because the commit headroom it reads includes all of the host's swap. Measured in `xcl pipelines` with only these three programs in flight together. Linux, RTX 3080 Ti, 32 GB RAM, a cgroup of 25 GB RAM + 32 GB swap, empty DXIL cache: | tree | RAM / swap peak | DXIL made | |---|---|---| | `main` | 25.6 GB (cap) in 23 s / 20.8 GB | none | | + #1660 (sources over 8 MB compile one at a time) | 11 GB, then 25.6 GB once ActivateRays starts | the two probe programs | | + #1660 + #1321 | **11.4 GB / 5.7 GB** | all three, in 306 s | Details and tests are in #1660. #1710 (retry after `E_OUTOFMEMORY`) is the reactive side of the same problem. Under Wine, DXC rarely sees `E_OUTOFMEMORY`, because the host swaps first. **AI use** - Claude Code (Claude Opus 5.5) ran the measurement and wrote this comment.
Author
Owner

@⁠ThiagoAlexsander on GitHub · 2026-11-24 19:54 UTC · original

I narrowed it down. Each measurement samples xcl.exe private bytes every 10 s for 60 s while it runs xcl shaders <retail shaders.rpf> --precompile --only <stage>, on the same machine and build as above.

Variant Private GB at 10, 20 … 60 s
--only cs --pipelines (XCL_PIPELINE_THREADS=4) 5.6, 15.4, 17.6, 20.4, 22.8, 24.1
--only cs (no pipelines) 3.1, 37, 58.9, 85.1, 94.5, 94.8
--only cs, #688 merged 3.7, 26.1, 51.3, 73.4, 93.9, 94.1
--only cs, XCL_TRANSLATED_CACHE=0 3.9, 31.2, 51.5, 70, 91.9, 94.8
--only cs, XCL_DXC_THREADS=2 (90 s) 1.6, 13.7, 47, 73.1, 93.8, 94.2, 94.2, 94.2, 94.2
--only ps 1.2, 1.2, 1.2, 1.2, 1.0, 1.1

What this rules out, and what it leaves:

  • Driver: not the driver or the PSO path. Without --pipelines it grows faster; with them, the driver compiles just slow the loop down.
  • Concurrency: not compiles in flight. Two DXC threads reach the same ~94 GB, where it levels off (this machine's commit limit is 65 GB plus pagefile growth).
  • #688: not the heap contention that #688 addresses.
  • Disk caches: not the translated cache. It grows the same way with XCL_TRANSLATED_CACHE=0. It also grows when most programs are already in the DXIL cache: an earlier pass with nearly everything cached passed 25 GB within 20 s.
  • Path: the --only cs branch, i.e. pso::console_to_dxil_in → compile_console_shader. --only ps stays flat. I didn't confirm how many PS programs that run reached within its 60 s, so treat that row as weaker evidence.

In the code, ShaderCache (capped at 128 entries / 64 MB), cached_shader, translated::cached_in, shader::STATE (hashes only) and the translator's per-Ctx memo all look bounded, so I couldn't point at a line. The growth works out to roughly 35 MB per compute program processed.

Not tested: plain main without the merged PRs, and AMD.

AI use: Claude Code (Claude Opus 5.5) ran these measurements and wrote this comment. Posted with my approval.

**@⁠ThiagoAlexsander** on GitHub · 2026-11-24 19:54 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7142748424) I narrowed it down. Each measurement samples `xcl.exe` private bytes every 10 s for 60 s while it runs `xcl shaders <retail shaders.rpf> --precompile --only <stage>`, on the same machine and build as above. | Variant | Private GB at 10, 20 … 60 s | |---|---| | `--only cs --pipelines` (`XCL_PIPELINE_THREADS=4`) | 5.6, 15.4, 17.6, 20.4, 22.8, 24.1 | | `--only cs` (no pipelines) | 3.1, 37, 58.9, 85.1, 94.5, 94.8 | | `--only cs`, #688 merged | 3.7, 26.1, 51.3, 73.4, 93.9, 94.1 | | `--only cs`, `XCL_TRANSLATED_CACHE=0` | 3.9, 31.2, 51.5, 70, 91.9, 94.8 | | `--only cs`, `XCL_DXC_THREADS=2` (90 s) | 1.6, 13.7, 47, 73.1, 93.8, 94.2, 94.2, 94.2, 94.2 | | `--only ps` | 1.2, 1.2, 1.2, 1.2, 1.0, 1.1 | What this rules out, and what it leaves: - **Driver:** not the driver or the PSO path. Without `--pipelines` it grows faster; with them, the driver compiles just slow the loop down. - **Concurrency:** not compiles in flight. Two DXC threads reach the same ~94 GB, where it levels off (this machine's commit limit is 65 GB plus pagefile growth). - **#688:** not the heap contention that #688 addresses. - **Disk caches:** not the translated cache. It grows the same way with `XCL_TRANSLATED_CACHE=0`. It also grows when most programs are already in the DXIL cache: an earlier pass with nearly everything cached passed 25 GB within 20 s. - **Path:** the `--only cs` branch, i.e. `pso::console_to_dxil_in` → `compile_console_shader`. `--only ps` stays flat. I didn't confirm how many PS programs that run reached within its 60 s, so treat that row as weaker evidence. In the code, `ShaderCache` (capped at 128 entries / 64 MB), `cached_shader`, `translated::cached_in`, `shader::STATE` (hashes only) and the translator's per-`Ctx` memo all look bounded, so I couldn't point at a line. The growth works out to roughly 35 MB per compute program processed. Not tested: plain `main` without the merged PRs, and AMD. AI use: Claude Code (Claude Opus 5.5) ran these measurements and wrote this comment. Posted with my approval.
Author
Owner

@⁠itsd-effex on GitHub · 2026-11-24 20:16 UTC · original

A follow-up on memory, now that #1426 is on main: the direct DXIL backend sidesteps most of DXC's memory use on the slow tail of this title.

The same 40 slow-tail pipelines through xcl pipelines (main c160d86 + #688 + #759 + #684 + #1321 + #1660), once with HLSL + DXC and once with XCL_DIRECT_DXIL=1. Linux, RTX 3080 Ti, 32 GB RAM, 14 threads, a cgroup of 25 GB RAM + 32 GB swap, empty caches, stopped at 20 min:

done at 20 min RAM peak swap peak
HLSL + DXC 35 / 40 26.1 GB 31.4 GB
XCL_DIRECT_DXIL=1 37 / 40 22.0 GB 3.4 GB

With direct DXIL, memory stopped being the limit for --precompile-style runs on this machine. I haven't tested xcl shaders --precompile itself.

AI use

  • Claude Code (Claude Opus 5.5) ran the measurement and wrote this comment.
**@⁠itsd-effex** on GitHub · 2026-11-24 20:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7143277394) A follow-up on memory, now that #1426 is on `main`: the direct DXIL backend sidesteps most of DXC's memory use on the slow tail of this title. The same 40 slow-tail pipelines through `xcl pipelines` (`main` `c160d86` + #688 + #759 + #684 + #1321 + #1660), once with HLSL + DXC and once with `XCL_DIRECT_DXIL=1`. Linux, RTX 3080 Ti, 32 GB RAM, 14 threads, a cgroup of 25 GB RAM + 32 GB swap, empty caches, stopped at 20 min: | | done at 20 min | RAM peak | swap peak | |---|---|---|---| | HLSL + DXC | 35 / 40 | 26.1 GB | 31.4 GB | | `XCL_DIRECT_DXIL=1` | 37 / 40 | 22.0 GB | 3.4 GB | With direct DXIL, memory stopped being the limit for `--precompile`-style runs on this machine. I haven't tested `xcl shaders --precompile` itself. **AI use** - Claude Code (Claude Opus 5.5) ran the measurement and wrote this comment.
Author
Owner

@⁠ThiagoAlexsander on GitHub · 2026-11-24 20:40 UTC · original

Retested on main 4178e88, which includes #1748. --only cs now stays at 1.5 to 3.1 GB private over 60 s (it was about 95 GB on b7aa9f3), same machine and same measurement. #1748 looks like the fix. I'll confirm once a full --only cs --pipelines pass finishes, then close this if nobody objects.

AI use: Claude Code (Claude Opus 5.5) ran the measurement and wrote this comment. Posted with my approval.

**@⁠ThiagoAlexsander** on GitHub · 2026-11-24 20:40 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7143898830) Retested on `main` `4178e88`, which includes #1748. `--only cs` now stays at **1.5 to 3.1 GB private over 60 s** (it was about 95 GB on `b7aa9f3`), same machine and same measurement. #1748 looks like the fix. I'll confirm once a full `--only cs --pipelines` pass finishes, then close this if nobody objects. AI use: Claude Code (Claude Opus 5.5) ran the measurement and wrote this comment. Posted with my approval.
Author
Owner

@⁠ivall on GitHub · 2026-11-24 21:08 UTC · original

The runaway growth here is #1307, and it is fixed on main by #1321, merged as e9e94ce. @⁠tiagonogueiraa-bit, @⁠JRamos1993 and @⁠CoDrift had traced it: one compute program came out as about 150 MB of source, and DXC's memory on it kept growing. Your table fits that: it grew faster without --pipelines, and also with two DXC threads.

One correction, so the result is not read the wrong way: I don't think #1748 is the fix. It changes only the direct DXIL path (XCL_DIRECT_DXIL). I measured that program's source with xcl shaders … --export-hlsl … --record-hash 95cc13288a27a96e (AMD RDNA4, 4 windows, native wave64):

main bytes of HLSL
4178e88 (with #1748, without #1321) 154,575,932
with #1321 15,360,321

A 60 s run on 4178e88 may simply not have reached the program: it is around record 22,600, and #1524 had changed the generated source, so the DXIL cache started cold. That part is a guess.

With #1321, @⁠CoDrift's full --only cs pass ended with 2,689 compiled, 0 errors and a 7.1 GB peak (report).

What is left is the driver's own memory on the other very large programs with --pipelines (there 8 → 20 GB in about 10 s on an RTX 3080 Ti). That is #1598, with #1660 and #1316 as candidates. The patches proposed above (a start index, progress lines, a memory budget) have their own PRs and don't need this issue.

Closing as fixed by #1321. If a full --only cs --pipelines pass on e9e94ce or later still grows without bound, say so here with the numbers and I'll reopen it. Thank you for the measurements.

AI use: Claude Code (Claude Opus 5.5) read the thread, made the measurement and wrote this, on the maintainer's behalf.

**@⁠ivall** on GitHub · 2026-11-24 21:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/1657#issuecomment-7144539827) The runaway growth here is #1307, and it is fixed on `main` by #1321, merged as `e9e94ce`. @⁠tiagonogueiraa-bit, @⁠JRamos1993 and @⁠CoDrift had traced it: one compute program came out as about 150 MB of source, and DXC's memory on it kept growing. Your table fits that: it grew faster without `--pipelines`, and also with two DXC threads. One correction, so the result is not read the wrong way: I don't think #1748 is the fix. It changes only the direct DXIL path (`XCL_DIRECT_DXIL`). I measured that program's source with `xcl shaders … --export-hlsl … --record-hash 95cc13288a27a96e` (AMD RDNA4, 4 windows, native wave64): | `main` | bytes of HLSL | |---|---| | `4178e88` (with #1748, without #1321) | 154,575,932 | | with #1321 | 15,360,321 | A 60 s run on `4178e88` may simply not have reached the program: it is around record 22,600, and #1524 had changed the generated source, so the DXIL cache started cold. That part is a guess. With #1321, @⁠CoDrift's full `--only cs` pass ended with 2,689 compiled, 0 errors and a 7.1 GB peak ([report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1321)). What is left is the driver's own memory on the other very large programs with `--pipelines` (there 8 → 20 GB in about 10 s on an RTX 3080 Ti). That is #1598, with #1660 and #1316 as candidates. The patches proposed above (a start index, progress lines, a memory budget) have their own PRs and don't need this issue. Closing as fixed by #1321. If a full `--only cs --pipelines` pass on `e9e94ce` or later still grows without bound, say so here with the numbers and I'll reopen it. Thank you for the measurements. AI use: Claude Code (Claude Opus 5.5) read the thread, made the measurement and wrote this, on the maintainer's behalf.
This discussion has been locked. Commenting is limited to contributors.
No description provided.