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§
- Memory
Pool - Memory pool for efficient allocation/deallocation.
- Pinned
Memory - Pinned (page-locked) host memory for efficient DMA transfers.
- Pooled
Buffer - A buffer from a memory pool.
- Pressure
Handler - Memory pressure handler for stratified pools.
- Stratified
Buffer - A buffer from a stratified memory pool.
- Stratified
Memory Pool - Multi-size memory pool with automatic bucket selection.
- Stratified
Pool Stats - Statistics for a stratified memory pool.
Enums§
- Pressure
Reaction - Reaction to memory pressure events.
- Size
Bucket - Size bucket for stratified pooling.
Traits§
- Device
Memory - Trait for device memory allocation.
- GpuBuffer
- Trait for GPU buffer operations.
- Pressure
Aware Pool - 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§
- Pressure
Callback - Callback type for memory pressure changes.
- Shared
Memory Pool - Shared memory pool that can be cloned.
- Shared
Stratified Pool - Shared stratified memory pool.