Skip to main content

Module managed

Module managed 

Source
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§

ManagedAllocatorActor
ManagedRef
Owning handle to a managed-memory region. Arc-cloned across agents; the underlying allocation is freed when the last clone drops.
ManagedStats

Enums§

ManagedFlags
ManagedMsg
PrefetchTarget