Module memory

Module memory 

Source
Expand description

GPU and host memory management abstractions.

This module provides RAII wrappers for GPU memory, pinned host memory, and memory pools for efficient allocation.

Modules§

align
Alignment utilities.

Structs§

MemoryPool
Memory pool for efficient allocation/deallocation.
PinnedMemory
Pinned (page-locked) host memory for efficient DMA transfers.
PooledBuffer
A buffer from a memory pool.
PressureHandler
Memory pressure handler for stratified pools.
StratifiedBuffer
A buffer from a stratified memory pool.
StratifiedMemoryPool
Multi-size memory pool with automatic bucket selection.
StratifiedPoolStats
Statistics for a stratified memory pool.

Enums§

PressureReaction
Reaction to memory pressure events.
SizeBucket
Size bucket for stratified pooling.

Traits§

DeviceMemory
Trait for device memory allocation.
GpuBuffer
Trait for GPU buffer operations.
PressureAwarePool
Extension trait for pressure-aware memory pools.

Functions§

create_pool
Create a shared memory pool.
create_stratified_pool
Create a shared stratified memory pool.
create_stratified_pool_with_capacity
Create a shared stratified memory pool with custom capacity.

Type Aliases§

PressureCallback
Callback type for memory pressure changes.
SharedMemoryPool
Shared memory pool that can be cloned.
SharedStratifiedPool
Shared stratified memory pool.