Skip to content

NVIDIA 621.24 refuses heap-window compute programs with many memory reads (E_OUTOFMEMORY, #680) #756

Not planned

Description

@CowboyBingus

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 1ad9343 merged onto main f4ce27c)

xcl shaders shaders.rpf --precompile --pipelines --only cs on a retail title's pack (1.0.2.1), own DXIL cache, 4 driver threads:

  • 725 compute pipelines made, 5 refused, all 0x8007000E, the same 5 again on a second run (they fail within seconds, no memory pressure): one shader family, CS_ResolveToGBufferTiled_1/3/5/7 and CS_ResolveToMirrorGBuffer (91 – 99 KB of DXIL). Hundreds of larger programs build.
  • Compared with an accepted 88 KB program of the same pack (dxc -dumpbin): rawBufferLoad 370 / 385 vs 25, createHandleFromHeap 88 / 95 vs 17, annotateHandle 132 / 149 vs 33.
  • The heap form itself is much faster here: 639 compute pipelines in ~7 min on 4 driver threads, against ~300 in ~17 min on 8 threads for the switch form (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.

Activity

  1. CowboyBingus commented on Nov 24, 2026

    @CowboyBingus
    Author

    Closing: on this machine the refusals are harmless and the driver abort did not happen.

    AI use: Claude Code (Claude Opus 5.5), from runs on the hardware above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions