Module pool_allocator

Module pool_allocator 

Source
Expand description

3-pool memory allocator for zero allocation in steady state

Pools:

  1. DEVICE_LOCAL - GPU-only memory
  2. HOST_VISIBLE|COHERENT - Pinned staging, persistently mapped
  3. HOST_VISIBLE|CACHED - Readback memory

Structs§

AllocationHandle
Allocation handle
PoolAllocator
Global pool allocator
PoolStats
Get pool statistics

Enums§

PoolType
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