Expand description
CUDA memory management
This module provides GPU memory management with budget enforcement. It wraps cudarc’s allocation functions and tracks total allocated memory.
Structs§
- Allocation
Reclamation - Accounting owned by one allocation attempt and then by its physical storage.
- Arrow
Device Column - Cuda
Buffer - Column-oriented GPU buffer
- Device
Allocation Provenance - Physical provenance of a view of an allocation owned by XLOG.
- Device
Memory View - A checked typed device span with a strong allocation owner. Subviews and reinterpretations preserve this same owner; none expose cudarc pointer traits.
- Dlpack
Column - GpuMemory
Manager - Budget-enforced device allocation. Every view retains actual storage. Runtime-backed managers use the canonical resource stack. Native allocations share its raw owner: post-malloc failures retain storage and budget together.
- GpuMemory
Reservation - One atomic claim on a
GpuMemoryManagerbudget. - Runtime
Alloc Block - Owned handle for a raw allocation routed through the device runtime. Both raw allocations and typed storage views retain this handle. Drop hands its block identity to the runtime; the actual raw owner’s successful physical reclamation returns the local manager charge, including on another reaper.
- Tracked
Cuda Slice - A typed view retaining its actual device allocation and memory budget.
Enums§
- Cuda
Column - Column data stored in device memory.
Traits§
- Device
Read - Safe XLOG device operations accept owner-bearing spans, not native pointer adapters. The returned span must retain the actual allocation.
- Device
Write - A span accepted as a destination by safe XLOG operations. Conflicting aliases are excluded by operation admission, including aliases of a different type.