Expand description
ManagedAllocatorActor + ManagedRef<T>.
ManagedRef<T> is distinct from crate::gpu_ref::GpuRef<T>
because validity rules differ: managed memory survives
ContextActor rebuilds, so generation tokens don’t apply.
Validity is tied to the allocator actor’s lifetime via
Arc<AtomicBool>.
Backed by raw cudaMallocManaged + cudaFree from cudarc’s
runtime sys layer. The pointer is allocated once at construction
and freed when the last ManagedRef clone drops or when the
allocator actor stops, whichever comes first.
Structs§
- Managed
Allocator Actor - Managed
Ref - Owning handle to a managed-memory region.
Arc-cloned across agents; the underlying allocation is freed when the last clone drops. - Managed
Stats