NVIDIA 621.24 refuses heap-window compute programs with many memory reads (E_OUTOFMEMORY, #680) #751
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?
Imported from ivall/xcl. Originally posted by CowboyBingus on 2026-11-24T04:44:00Z.
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.
Imported from ivall/xcl. Originally posted by CowboyBingus on 2026-11-24T05:06:29Z.
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.
upstream-sync referenced this issue2026-11-25 16:10:51 +00:00
xcl nvprofileputs xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2580mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172