Expand description
Memory management value types: reports, configuration and the managed
handle. The pools behind them are cubecl-server’s.
Structs§
- Managed
Memory Binding - Binding of a memory handle
- Managed
Memory Handle - Managed Memory handle
- Managed
Memory Id - Managed memory unique identifier.
- Memory
Pool Options - Options to create a memory pool.
- Memory
Pool Report - A structured snapshot of one memory pool: its shape, its current usage, and the high-water marks a memory plan is derived from.
- Memory
Record - A
MemoryReportas the environment records it: a snapshot of one stream’s pools at a moment the caller named, written byClient::record_memory. - Memory
Report - A per-pool report of one
MemoryManagement(incubecl-server) instance — the read side of a measured memory plan. - Memory
Usage - Amount of memory in use by this allocator and statistics on how much memory is reserved and wasted in total.
- Shared
Memory Bindings - A list of bindings that are shared across multiple streams.
Enums§
- Install
Memory Pools Error - Why installing a dynamic pool layout did not take effect.
- Memory
Allocation Mode - The mode of allocation used.
- Memory
Configuration - High level configuration of memory management.
- Memory
Pool Kind - The pool shape a
MemoryPoolReportdescribes, carrying the pool’s effective configuration (after alignment rounding and page-size shrinking). - Pool
Config Error - Why a
memory.poolsconfig could not be turned into a pool layout. - Pool
Type - The type of memory pool to use.
Constants§
- EXCLUSIVE_
MEMORY_ ONLY - Whether this build refuses pools that share a page between allocations —
the
exclusive-memory-onlyfeature, or a wasm target.
Traits§
- Memory
Handle - The managed tensor buffer handle that points to some memory segment. It should not contain actual data.
Functions§
- optimal_
align - Calculates a best-effort heuristic for the alignment of row-aligned tensors.
Prefers contiguous alignments for unit dimensions, 16-byte minimum alignment for non-unit,
scaling with input size up to
buffer_align.