Compute pipeline build takes >120 GB of memory on NVIDIA #1598

Open
opened 2026-11-26 04:58:51 +00:00 by github-bot · 7 comments
Owner

@⁠PrMeiliv on GitHub · 2026-11-24 18:07 UTC · original

Game and package version

Retail 1.0.2.1

What happens

Setup:
9800x3d
4080
32go

Precompile (xcl shaders shaders.rpf --precompile --pipelines)

  • 3 runs, two of them on 9e3831e. Each crashes with LLVM ERROR: out of memory / Allocation failed after
    22600/26503 shaders, at "pipelines: 450–525 made, 0 refused".
  • After raising the page file to 120 GB and restarting with 2 pipeline threads, the same point
    uses ~123 GB of commit.

In game (same build, same cache)

  • With an automatic page file: process commit 28.7 GB at 66 s. World load at ~50 s, last frame ~66 s,
    title watchdog crash (+0x23cf683, null write) at 95 s. One compute PSO took 44.6 s (921 KB DXIL).
  • Next run, memory allocation of 11206656 bytes failed (exit 0xc0000409) at 43 GB of commit.
  • With a 120 GB page file: commit 69 GB at 40 s, 124 GB at 66 s, then the same watchdog crash at ~114 s.
    XCL's own counters (target pages, pools, arenas, sparse) are about the same as in the 28.7 GB run,
    so ~95 GB is outside them.

Guess: one large compute program (maybe bigger because of the split wave64 form) needs unbounded
memory in DXC or the NVIDIA compiler. It sits on the world-load path, so this is likely the
"slow build" holding up the first world frame on NVIDIA.

XCL version

9e3831e

GPU and driver version

4080 32.0.16.2124

Windows version

26h2 36300.9974

report.json and xcl.log

xcl.log
report.json

Console output


Written by Claude (Opus 5.5)

**@⁠PrMeiliv** on GitHub · 2026-11-24 18:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598) ### Game and package version Retail 1.0.2.1 ### What happens Setup: 9800x3d 4080 32go **Precompile** (`xcl shaders shaders.rpf --precompile --pipelines`) - 3 runs, two of them on 9e3831e. Each crashes with `LLVM ERROR: out of memory / Allocation failed` after 22600/26503 shaders, at "pipelines: 450–525 made, 0 refused". - After raising the page file to 120 GB and restarting with 2 pipeline threads, the same point uses ~123 GB of commit. **In game** (same build, same cache) - With an automatic page file: process commit 28.7 GB at 66 s. World load at ~50 s, last frame ~66 s, title watchdog crash (`+0x23cf683`, null write) at 95 s. One compute PSO took 44.6 s (921 KB DXIL). - Next run, `memory allocation of 11206656 bytes failed` (exit 0xc0000409) at 43 GB of commit. - With a 120 GB page file: commit 69 GB at 40 s, 124 GB at 66 s, then the same watchdog crash at ~114 s. XCL's own counters (target pages, pools, arenas, sparse) are about the same as in the 28.7 GB run, so ~95 GB is outside them. **Guess:** one large compute program (maybe bigger because of the split wave64 form) needs unbounded memory in DXC or the NVIDIA compiler. It sits on the world-load path, so this is likely the "slow build" holding up the first world frame on NVIDIA. ### XCL version 9e3831e ### GPU and driver version 4080 32.0.16.2124 ### Windows version 26h2 36300.9974 ### report.json and xcl.log [xcl.log](https://github.com/user-attachments/files/35361397/xcl.log) [report.json](https://github.com/user-attachments/files/35361396/report.json) ### Console output ```text ``` Written by Claude (Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:58:51 +00:00
Author
Owner

@⁠ofc0urse on GitHub · 2026-11-24 18:29 UTC · original

Same picture here on an RTX 4060 Ti 8 GB (driver 621.24, 32 GB RAM, main 9e3831e + local test-only patches, XCL_HEAP_WINDOWS=1), and it goes away when the few translated sources over 8 MB of HLSL are not compiled.

I added a log line for every DXC compile of 4 MB or more and a test-only switch that refuses sources over a size. With sources over 8 MB refused, xcl shaders <pack> --precompile --only cs --pipelines refused six: 12.0, 12.3, 12.7, 29.5, 29.6 and 147.4 MB of HLSL. Free commit has stayed flat at 43–52 GB since, now past 1,475 pipelines, 0 refused; sources of 4–4.6 MB build in 21–126 s each. Without the cap the same command took free commit from ~48 GB to 4.9 GB in about 2 minutes, and a title run went from 33 to 82 GB of process commit in ~40 s with xcl-dxc-0 inside dxcompiler.dll at the time. Numbers per DXC flag are in #1526 (#1526), the title-run side in #1566 (#1566).

So the ~95 GB outside XCL's counters is most likely DXC compiling these sources inside the XCL process (its heap is not in XCL's counting allocator). The 147.4 MB one is probably the 154.6 MB program measured in #1269, in the heap-window form. I can't separate it fully from the driver: in the precompile run without the cap I had no per-compile log yet, and I did not try which of the six alone takes the memory.

A workaround that worked here, test-only and not a PR: refuse those sources in dxc::compile_here before DXC sees them, so their pipelines are refused like any failed compile.

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and wrote this; I checked it before posting.

**@⁠ofc0urse** on GitHub · 2026-11-24 18:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7140719151) Same picture here on an RTX 4060 Ti 8 GB (driver 621.24, 32 GB RAM, `main` `9e3831e` + local test-only patches, `XCL_HEAP_WINDOWS=1`), and it goes away when the few translated sources over 8 MB of HLSL are not compiled. I added a log line for every DXC compile of 4 MB or more and a test-only switch that refuses sources over a size. With sources over 8 MB refused, `xcl shaders <pack> --precompile --only cs --pipelines` refused six: **12.0, 12.3, 12.7, 29.5, 29.6 and 147.4 MB** of HLSL. Free commit has stayed flat at 43–52 GB since, now past 1,475 pipelines, 0 refused; sources of 4–4.6 MB build in 21–126 s each. Without the cap the same command took free commit from ~48 GB to 4.9 GB in about 2 minutes, and a title run went from 33 to 82 GB of process commit in ~40 s with `xcl-dxc-0` inside `dxcompiler.dll` at the time. Numbers per DXC flag are in #1526 (https://git.gtahub.st/github/xcl-dev--xcl/pulls/1526), the title-run side in #1566 (https://git.gtahub.st/github/xcl-dev--xcl/issues/1566). So the ~95 GB outside XCL's counters is most likely DXC compiling these sources inside the XCL process (its heap is not in XCL's counting allocator). The 147.4 MB one is probably the 154.6 MB program measured in #1269, in the heap-window form. I can't separate it fully from the driver: in the precompile run without the cap I had no per-compile log yet, and I did not try which of the six alone takes the memory. A workaround that worked here, test-only and not a PR: refuse those sources in `dxc::compile_here` before DXC sees them, so their pipelines are refused like any failed compile. AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and wrote this; I checked it before posting.
Author
Owner

@⁠joeypercia on GitHub · 2026-11-24 20:07 UTC · original

Two open PRs target exactly the sources @⁠ofc0urse names, and with both merged the blow-up is gone here: #1321 (structured code over 128 bytes per code byte falls back to pc blocks, so the 147 MB program) and #1316 on #1315 (compute programs through a compact form: CS_ScreenProbes_ActivateProbes 29.7 MB → 1.05 MB of DXIL).

Tested: RTX 4070 Ti (driver 616.56), Ryzen 7 7800X3D, 32 GB RAM, automatic page file (limit ~68–75 GB during these runs), Windows 11 Pro 26200, release builds, retail 1.0.2.1, no XCL_PSO_WAIT_MS. #1321 conflicts with main since #680 (both add a line at the top of translate); I merged it locally keeping both, and moved its program binding into translate() where #1316 splits off prepare().

tree (all + #1288 + #742) process commit what happened
main 9e3831e 31 GB at 270 s → 100 GB at ~400 s (page file at its limit, 0 free) a pipeline worker busy 5+ min on one compute program, no frames after 98 s; I ended it
9e3831e + #1321 + #1316 flat 32–33 GB from 300 s to 650 s the compact ActivateProbes (1,053,264 B) built in 20.5 s; ~1 MB compute PSOs after it at 48–63 s each; no frames after 118 s
precompile (--precompile --only cs --pipelines, 6 DXC threads) on the same tree 4.4 → 9.2 GB went past record 22,600 (where the crash above happens) to 775 pipelines, 0 refused; stopped by me after ~1 h (slow, not stuck)

So for this issue's memory, #1321 + #1316 look like the fix; the remaining world-load stop on NVIDIA here is the build time of the ~1 MB compute pipelines, not memory.

Not tested: #1321 or #1316 alone (only together); XCL_HEAP_WINDOWS=1; the direct DXIL path (XCL_DIRECT_DXIL=1) with this title.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the title on my machine, read the logs and wrote this report.

**@⁠joeypercia** on GitHub · 2026-11-24 20:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7143075021) Two open PRs target exactly the sources @⁠ofc0urse names, and with both merged the blow-up is gone here: #1321 (structured code over 128 bytes per code byte falls back to `pc` blocks, so the 147 MB program) and #1316 on #1315 (compute programs through a compact form: `CS_ScreenProbes_ActivateProbes` 29.7 MB → 1.05 MB of DXIL). **Tested**: RTX 4070 Ti (driver 616.56), Ryzen 7 7800X3D, 32 GB RAM, automatic page file (limit ~68–75 GB during these runs), Windows 11 Pro 26200, release builds, retail 1.0.2.1, no `XCL_PSO_WAIT_MS`. #1321 conflicts with `main` since #680 (both add a line at the top of `translate`); I merged it locally keeping both, and moved its `program` binding into `translate()` where #1316 splits off `prepare()`. | tree (all + #1288 + #742) | process commit | what happened | |---|---|---| | `main` `9e3831e` | 31 GB at 270 s → **100 GB at ~400 s** (page file at its limit, 0 free) | a pipeline worker busy 5+ min on one compute program, no frames after 98 s; I ended it | | `9e3831e` + #1321 + #1316 | **flat 32–33 GB** from 300 s to 650 s | the compact `ActivateProbes` (1,053,264 B) built in 20.5 s; ~1 MB compute PSOs after it at 48–63 s each; no frames after 118 s | | precompile (`--precompile --only cs --pipelines`, 6 DXC threads) on the same tree | 4.4 → 9.2 GB | went past record 22,600 (where the crash above happens) to 775 pipelines, 0 refused; stopped by me after ~1 h (slow, not stuck) | So for this issue's memory, #1321 + #1316 look like the fix; the remaining world-load stop on NVIDIA here is the build time of the ~1 MB compute pipelines, not memory. **Not tested**: #1321 or #1316 alone (only together); `XCL_HEAP_WINDOWS=1`; the direct DXIL path (`XCL_DIRECT_DXIL=1`) with this title. **AI use**: Claude Code (Claude Opus 5.5) ran the builds and the title on my machine, read the logs and wrote this report.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 22:01 UTC · original

Peak commit of two of the very large compute programs, per program, on the same base: main 266b845 against #1316 at 964f5ed with XCL_COMPACT_CS unset (auto). RTX 5070 Ti, xcl shaders <record folder> --measure-pso <hash> (driver caches off), one cold run each (new exe copy, empty XCL_DXIL_CACHE), peak private commit sampled every 0.5 s, main's runs stopped at 600 s:

program main 266b845 #1316 964f5ed
56c0cd3b82a00c6e not built within 600 s, peak 4,986 MB built: DXC 15.0 s + driver 18.3 s, peak 579 MB
958400d2caf07244 not built within 600 s, peak 4,973 MB built: DXC 23.4 s + driver 6.2 s, peak 503 MB
  • This is one program per process through --measure-pso, not a --pipelines run.
  • 95cc13288a27a96e (ActivateRays) is not affected by #1316: its compact form is refused (9975-word table (at most 8192)), so both builds translate it the same way.
  • Commands and the HLSL / DXIL sizes are in #1316's description, under Tested.

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

**@⁠CowboyBingus** on GitHub · 2026-11-24 22:01 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7145705582) Peak commit of two of the very large compute programs, per program, on the same base: `main` `266b845` against [#1316](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316) at `964f5ed` with `XCL_COMPACT_CS` unset (`auto`). RTX 5070 Ti, `xcl shaders <record folder> --measure-pso <hash>` (driver caches off), one cold run each (new exe copy, empty `XCL_DXIL_CACHE`), peak private commit sampled every 0.5 s, `main`'s runs stopped at 600 s: | program | `main` `266b845` | #1316 `964f5ed` | |---|---|---| | `56c0cd3b82a00c6e` | not built within 600 s, peak 4,986 MB | built: DXC 15.0 s + driver 18.3 s, peak 579 MB | | `958400d2caf07244` | not built within 600 s, peak 4,973 MB | built: DXC 23.4 s + driver 6.2 s, peak 503 MB | - This is one program per process through `--measure-pso`, not a `--pipelines` run. - `95cc13288a27a96e` (`ActivateRays`) is not affected by #1316: its compact form is refused (`9975-word table (at most 8192)`), so both builds translate it the same way. - Commands and the HLSL / DXIL sizes are in #1316's description, under **Tested**. AI use: Claude Code (Claude Opus 5.5) ran the measurements and wrote this comment.
Author
Owner

@⁠O5-7 on GitHub · 2026-11-25 07:21 UTC · original

Claiming the offline xcl shaders --precompile --pipelines memory-gating slice for #1598 (disjoint from #1638's DXC subprocess cap and #1315/#1316's compact backend).

Currently Pipelines::make_with_cache_path in crates/xcl/src/shaders.rs bounds only total thread count (XCL_PIPELINE_THREADS, default 4) and the 8 MiB single-shader cap (XCL_PIPELINE_MAX_KB), so up to 4 large (1–8 MiB) uncached compute DXILs can enter the NVIDIA driver simultaneously without commit-headroom checks — unlike runtime xcl-pso* workers in hle/d3d12x/real.rs (big_compile_turn / big_compile_headroom).

Plan (one small PR):

  • Gate uncached large DXIL builds in shaders.rs (--pipelines) with huge-DXIL concurrency serialization and GlobalMemoryStatusEx commit-headroom checks matching the runtime policy in real.rs (cached-blob hits stay ungated).
  • Add unit tests for the gating / headroom policy and verify peak commit on native Windows (RTX 5080).
**@⁠O5-7** on GitHub · 2026-11-25 07:21 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7155767743) Claiming the offline `xcl shaders --precompile --pipelines` memory-gating slice for #1598 (disjoint from #1638's DXC subprocess cap and #1315/#1316's compact backend). Currently `Pipelines::make_with_cache_path` in `crates/xcl/src/shaders.rs` bounds only total thread count (`XCL_PIPELINE_THREADS`, default 4) and the 8 MiB single-shader cap (`XCL_PIPELINE_MAX_KB`), so up to 4 large (1–8 MiB) uncached compute DXILs can enter the NVIDIA driver simultaneously without commit-headroom checks — unlike runtime `xcl-pso*` workers in `hle/d3d12x/real.rs` (`big_compile_turn` / `big_compile_headroom`). Plan (one small PR): - Gate uncached large DXIL builds in `shaders.rs` (`--pipelines`) with huge-DXIL concurrency serialization and `GlobalMemoryStatusEx` commit-headroom checks matching the runtime policy in `real.rs` (cached-blob hits stay ungated). - Add unit tests for the gating / headroom policy and verify peak commit on native Windows (RTX 5080).
Author
Owner

@⁠b3IKK on GitHub · 2026-11-25 11:50 UTC · original

Cross-link from a world-load run today: the program that made this issue's numbers so large no longer exists in that form on current main. 56c0cd3b82a00c6e was 29,215,780 B of DXIL (the ~150 MB of HLSL in the report above, in the heap-window form) at 689f2db and never finished compiling in a 1494 s run. On main 426a5a7 the same record is 484,744 B of DXIL and the driver finishes it in 10.4 s.

That is #2120's routing ("enormous compute programs take the direct DXIL translator") — the log line for its sibling says 15008 KB of HLSL would compile unoptimised - direct DXIL instead (2345 KB). The remaining big program is 95cc13288a27a96e at 2,401,896 B and ~149 s of driver time, which #2120 leaves on the HLSL path.

Measured on an RTX 5080 (32-lane waves, driver 32.0.16.1088), retail 1.0.2.1, 600 s runs with XCL_PSO_DISK_CACHE=0 so the driver compiles are cold: 39 compute records that both main 426a5a7 and main + #1380 reached, 994.5 s of driver time on main, of which the ten of 700 KB or more are 661.0 s. #1380 (7d43a46) takes those ten to 301.2 s. Details and the per-record table are in my comment on #1380.

Not tested: AMD, Linux / Wine, XCL_HEAP_WINDOWS=1, and what any of these programs compute; the title's picture stops before they finish in both runs.

AI use: OpenCode, Claude Fable 5.2 built the trees, ran the runs and wrote this.

**@⁠b3IKK** on GitHub · 2026-11-25 11:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7161572595) Cross-link from a world-load run today: **the program that made this issue's numbers so large no longer exists in that form on current `main`.** `56c0cd3b82a00c6e` was 29,215,780 B of DXIL (the ~150 MB of HLSL in the report above, in the heap-window form) at `689f2db` and never finished compiling in a 1494 s run. On `main` `426a5a7` the same record is **484,744 B of DXIL and the driver finishes it in 10.4 s**. That is #2120's routing ("enormous compute programs take the direct DXIL translator") — the log line for its sibling says `15008 KB of HLSL would compile unoptimised - direct DXIL instead (2345 KB)`. The remaining big program is `95cc13288a27a96e` at 2,401,896 B and ~149 s of driver time, which #2120 leaves on the HLSL path. **Measured** on an RTX 5080 (32-lane waves, driver 32.0.16.1088), retail 1.0.2.1, 600 s runs with `XCL_PSO_DISK_CACHE=0` so the driver compiles are cold: 39 compute records that both `main` `426a5a7` and `main` + #1380 reached, 994.5 s of driver time on `main`, of which the ten of 700 KB or more are 661.0 s. #1380 (`7d43a46`) takes those ten to 301.2 s. Details and the per-record table are in my comment on #1380. Not tested: AMD, Linux / Wine, `XCL_HEAP_WINDOWS=1`, and what any of these programs compute; the title's picture stops before they finish in both runs. AI use: OpenCode, Claude Fable 5.2 built the trees, ran the runs and wrote this.
Author
Owner

@⁠Chrysana on GitHub · 2026-11-25 19:06 UTC · original

AMD numbers for 95cc13288a27a96e (ActivateRays), for "Not tested: AMD" above. On RDNA4 the title's driver compile of this record never finished in 5 runs. While it compiles, process commit grows by ~16 GB in ~70 s. In the one run where it ended, the driver refused it with 0x8007000e after 69 s, and 12.7 GB of commit went within 2 s. XCL's own counters stay flat throughout, so this is the driver compiler's memory.

Setup: AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 32.0.32015.2008, Ryzen 7 9800X3D, 31 GB RAM, page files growing on demand (commit ceiling 79 GB), Windows 11 26200.9974, release builds. Retail title 1.0.2.1, XCL_NETWORK=0 XCL_ACTIVITY=1, A pressed every 4 s from 12 to 120 s, default path (no XCL_DIRECT_DXIL), driver caches on but holding no blob for this record (driver blob absent every time).

The record on main 06c9f55: [SHADER] 95cc13288a27a96e: 15008 KB of HLSL would compile unoptimised – direct DXIL instead (2363 KB), then driver compile start …: compute PSO, 2420640 B DXIL, record 95cc13288a27a96e. On this base it goes through the direct DXIL translator, not the HLSL path described above for 426a5a7.

build compile starts outcome process commit
main 06c9f55 108.4 s refused with 0x8007000e at 177.5 s, after 69.1 s in the driver; its dispatches are skipped 28.1 GB at 108 s → 44.3 GB at 174 s → 31.6 GB at 178 s
06c9f55 + #1993 3260d40 110.6 s still compiling when the process failed fast (0xc0000409) at ~183 s; at 181.0 s the driver refused another compute PSO (354,252 B) with 0x8007000e 25.8 GB at 100 s → 45.0 GB at 180 s
06c9f55 + #1993 3260d40 107.5 s still compiling when my memory guard stopped the run at ~143 s 36.2 GB at 140 s
06c9f55 + #1993 69903fc 108.7 s still compiling at the 140 s limit 26.4 GB at 100 s → 35.9 GB at 140 s
06c9f55 + #1993 3260d40 269.7 s (reached later in that run) still compiling at the 300 s limit at most 40.4 GB
  • #1993 changes sparse copy-backs and the fence hooks that settle them, not shader compiles. On main and with #1993, commit follows the same curve while this compile runs (more on that in my #1993 comment).
  • A few other huge compute PSOs (330–430 KB, 10–14 s each) compile during the same stretch, so not all ~16 GB is this one. The 12.7 GB that goes within 2 s of its refusal is the clearest measure of its share.
  • In the main run, the compile is logged as huge, ungated here (a title thread's, cached, or gated by its caller), so the runtime's huge-compile gate didn't hold it. For this size, the gate's headroom rule (big_compile_headroom: the larger of 3 GB and 512 × the DXIL size) asks for 3 GB of free commit. On RDNA4 this compile took several times that. This may matter for @⁠O5-7's gating slice: the 512× figure would need to be ~5,000× to cover it.
  • After the refusal, main skipped the program's dispatches for the remaining 122 s and didn't try the compile again.
  • I didn't use xcl shaders --measure-pso for this record: it compiles the record's HLSL through DXC, while the title sends this record through the direct DXIL translator, so it wouldn't time the same compile.

Not tested

  • How long the compile takes on AMD when it finishes: it never did here.
  • A larger fixed page file, the RDNA2 iGPU, Linux / RADV, XCL_DIRECT_DXIL=1.
  • Current main (these runs are on 06c9f55).

AI use

  • Claude Code (Claude Opus 5.5) ran the title runs, read the logs and the gate's code, and drafted this comment. I checked it before posting.
**@⁠Chrysana** on GitHub · 2026-11-25 19:06 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7171826114) AMD numbers for `95cc13288a27a96e` (ActivateRays), for "Not tested: AMD" above. **On RDNA4 the title's driver compile of this record never finished in 5 runs. While it compiles, process commit grows by ~16 GB in ~70 s. In the one run where it ended, the driver refused it with `0x8007000e` after 69 s, and 12.7 GB of commit went within 2 s.** XCL's own counters stay flat throughout, so this is the driver compiler's memory. **Setup:** AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 32.0.32015.2008, Ryzen 7 9800X3D, 31 GB RAM, page files growing on demand (commit ceiling 79 GB), Windows 11 26200.9974, release builds. Retail title 1.0.2.1, `XCL_NETWORK=0 XCL_ACTIVITY=1`, A pressed every 4 s from 12 to 120 s, default path (no `XCL_DIRECT_DXIL`), driver caches on but holding no blob for this record (`driver blob absent` every time). **The record on `main` `06c9f55`:** `[SHADER] 95cc13288a27a96e: 15008 KB of HLSL would compile unoptimised – direct DXIL instead (2363 KB)`, then `driver compile start …: compute PSO, 2420640 B DXIL, record 95cc13288a27a96e`. On this base it goes through the direct DXIL translator, not the HLSL path described above for `426a5a7`. | build | compile starts | outcome | process commit | |---|---|---|---| | `main` `06c9f55` | 108.4 s | **refused with `0x8007000e` at 177.5 s**, after 69.1 s in the driver; `its dispatches are skipped` | 28.1 GB at 108 s → 44.3 GB at 174 s → **31.6 GB at 178 s** | | `06c9f55` + #1993 `3260d40` | 110.6 s | still compiling when the process failed fast (`0xc0000409`) at ~183 s; at 181.0 s the driver refused another compute PSO (354,252 B) with `0x8007000e` | 25.8 GB at 100 s → 45.0 GB at 180 s | | `06c9f55` + #1993 `3260d40` | 107.5 s | still compiling when my memory guard stopped the run at ~143 s | 36.2 GB at 140 s | | `06c9f55` + #1993 `69903fc` | 108.7 s | still compiling at the 140 s limit | 26.4 GB at 100 s → 35.9 GB at 140 s | | `06c9f55` + #1993 `3260d40` | 269.7 s (reached later in that run) | still compiling at the 300 s limit | at most 40.4 GB | - #1993 changes sparse copy-backs and the fence hooks that settle them, not shader compiles. On `main` and with #1993, commit follows the same curve while this compile runs (more on that in [my #1993 comment](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1993)). - A few other huge compute PSOs (330–430 KB, 10–14 s each) compile during the same stretch, so not all ~16 GB is this one. The 12.7 GB that goes within 2 s of its refusal is the clearest measure of its share. - In the `main` run, the compile is logged as `huge, ungated here (a title thread's, cached, or gated by its caller)`, so the runtime's huge-compile gate didn't hold it. For this size, the gate's headroom rule (`big_compile_headroom`: the larger of 3 GB and 512 × the DXIL size) asks for 3 GB of free commit. On RDNA4 this compile took several times that. This may matter for @⁠O5-7's gating slice: the 512× figure would need to be ~5,000× to cover it. - After the refusal, `main` skipped the program's dispatches for the remaining 122 s and didn't try the compile again. - I didn't use `xcl shaders --measure-pso` for this record: it compiles the record's HLSL through DXC, while the title sends this record through the direct DXIL translator, so it wouldn't time the same compile. **Not tested** - How long the compile takes on AMD when it finishes: it never did here. - A larger fixed page file, the RDNA2 iGPU, Linux / RADV, `XCL_DIRECT_DXIL=1`. - Current `main` (these runs are on `06c9f55`). **AI use** - Claude Code (Claude Opus 5.5) ran the title runs, read the logs and the gate's code, and drafted this comment. I checked it before posting.
Author
Owner

@⁠KOLESNiii on GitHub · 2026-11-26 10:09 UTC · original

A whole-pack xcl shaders --precompile --only cs --pipelines on an RTX 2070 SUPER (DXC 1.9.2609.5, 11 DXC threads) got past this issue's point at 22,600 and then ended twice at ~23,200–23,400 with a different fault: 0xc0000005 in dxcompiler.dll at the same offset, not the out-of-memory abort here. Commit was not sampled during those two runs. With XCL_DXC_THREADS=1 the same records compiled, and commit stayed at half the limit. Details in #2751.

Claude Code (Claude Opus 5.5) wrote this note from those runs.

**@⁠KOLESNiii** on GitHub · 2026-11-26 10:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7188988266) A whole-pack `xcl shaders --precompile --only cs --pipelines` on an RTX 2070 SUPER (DXC 1.9.2609.5, 11 DXC threads) got past this issue's point at 22,600 and then ended twice at ~23,200–23,400 with a different fault: `0xc0000005` in `dxcompiler.dll` at the same offset, not the out-of-memory abort here. Commit was not sampled during those two runs. With `XCL_DXC_THREADS=1` the same records compiled, and commit stayed at half the limit. Details in #2751. Claude Code (Claude Opus 5.5) wrote this note from those runs.
This discussion has been locked. Commenting is limited to contributors.
No description provided.