Expand description
Stream-ordered memory pools (Runtime API, CUDA 11.2+).
Mirrors [baracuda_driver::mempool] — a pool is a device-backed
allocator with a configurable release threshold, accessed via
cudaMallocFromPoolAsync and returned with cudaFreeAsync.
Each device exposes a default pool via default_pool.
Structs§
- Memory
Pool - A memory pool. Owned pools are destroyed on last-clone drop; borrowed
pools (returned by
default_pool/current_pool) are not.
Enums§
- Access
Flags - Access rights granted to a device for a pool’s allocations.
Functions§
- current_
pool - Return the pool currently used by
cudaMallocAsyncondevice. - default_
pool - Return the device’s default memory pool (borrowed — not destroyed on drop).
- set_
current_ pool - Replace the pool used by
cudaMallocAsyncondevice.