Skip to main content

Module local_memory

Module local_memory 

Source
Expand description

Local memory abstractions for RDMA operations.

KeepaliveLocalMemory wraps a raw pointer with a Keepalive guard and dispatches reads/writes to CPU or CUDA paths.

Structs§

KeepaliveLocalMemory
Local memory handle that keeps its backing allocation alive via an Arc<dyn Keepalive>.
WeakLocalMemory
Non-pinning counterpart of KeepaliveLocalMemory.

Traits§

Keepalive
Trait for values that keep a backing memory allocation alive and know its address and size.
WeakKeepalive
Counterpart to Keepalive: a non-pinning reference to the same underlying resource that can be re-promoted to a Keepalive as long as the resource is still alive.

Functions§

is_device_ptr
Returns true when addr is a CUDA device pointer.