Module host_heap

Module host_heap 

Source
Expand description

2026-09-25: The heap allocation behind the default GpuBackend::alloc_host_pinned and free_host_pinned. The mock allocates the same zeroed (bytes, 64) layout itself, to count calls, and frees through the default.

Owner: gpu-runtime. Invariants:

  • A block is zeroed, 64-byte aligned, and freed with the same (bytes, 64) layout it was allocated with, so free must get the allocated size.

Functionsยง

alloc_zeroed
free