Expand description
3-pool memory allocator for zero allocation in steady state
Pools:
- DEVICE_LOCAL - GPU-only memory
- HOST_VISIBLE|COHERENT - Pinned staging, persistently mapped
- HOST_VISIBLE|CACHED - Readback memory
Structs§
- Allocation
Handle - Allocation handle
- Pool
Allocator - Global pool allocator
- Pool
Stats - Get pool statistics
Enums§
- Pool
Type - Memory pool types
Functions§
- allocate_
buffer_ ⚠memory - Helper to allocate buffer memory
- allocate_
from_ ⚠pool - Allocate memory from appropriate pool
- free_
allocation ⚠ - Free allocation
- get_
allocation - Get allocation handle
- get_
pool_ stats - initialize_
pools ⚠ - Initialize pools for a device