NVIDIA 621.24 refuses heap-window compute programs with many memory reads (E_OUTOFMEMORY, #680) #756
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#756
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@CowboyBingus on GitHub · 2026-11-24 04:44 UTC · original
With the heap-window form of #680, NVIDIA's driver refuses a small group of a retail title's compute programs with
E_OUTOFMEMORY, at once and every time. They are not the biggest programs: what they have in common is many memory reads through the heap windows. I'm working on the cause and a fix in how heap-window accesses are emitted, as a PR on top of #680.Measured (RTX 5070 Ti 16 GB, driver 621.24, Ryzen 7 9800X3D, Windows 11 26300, DXC 1.8.2502, release; #680's head
1ad9343merged ontomainf4ce27c)xcl shaders shaders.rpf --precompile --pipelines --only cson a retail title's pack (1.0.2.1), own DXIL cache, 4 driver threads:0x8007000E, the same 5 again on a second run (they fail within seconds, no memory pressure): one shader family,CS_ResolveToGBufferTiled_1/3/5/7andCS_ResolveToMirrorGBuffer(91 – 99 KB of DXIL). Hundreds of larger programs build.dxc -dumpbin):rawBufferLoad370 / 385 vs 25,createHandleFromHeap88 / 95 vs 17,annotateHandle132 / 149 vs 33.main).Hypothesis (not confirmed): every access looks its window up in the heap with a non-uniform index, so the driver tracks one dynamically indexed handle per access; past some number of those it gives up and reports out of memory. Whether this is also behind the
0xc0000409"Invalid record" abort reported on #680 (RTX 4090, same driver) is not known.Plan: a minimal repro from one of these programs, then an emit change (for example one handle per window per program instead of one per access) and a PR stacked on #680, with the refused programs as the check.
AI use: investigation and this write-up with Claude Code (Claude Opus 5.5), from runs on the hardware above.
@CowboyBingus on GitHub · 2026-11-24 05:06 UTC · original
Closing: on this machine the refusals are harmless and the driver abort did not happen.
1ad9343onf4ce27c, same hardware as above, its own shader cache warm for ~825 compute programs) refused one heap-form pipeline in game at 105 s, #680's fallback built it in the switch form, and there was no0xc0000409: the run ended at 110 s in the title's watchdog (+0x23cf683), as plainmaindoes at ~106 s.NonUniformResourceIndex(windows and textures) orgloballycoherentfrom the refused program does not change the refusal. It is refused in 0.01 s, before any compile. I did not find the construct; with the fallback it costs ~2 s per program.AI use: Claude Code (Claude Opus 5.5), from runs on the hardware above.