Module local_memory

Module local_memory 

Source
Expand description

Local memory abstractions for RDMA operations.

This module defines the RdmaLocalMemory trait and its implementations:

  • KeepaliveLocalMemory – wraps a raw pointer with a keepalive guard and dispatches reads/writes to CPU or CUDA paths.
  • UnsafeLocalMemory – raw pointer-based handle where the caller is responsible for lifetime management.

Structs§

KeepaliveLocalMemory
Local memory handle that keeps its backing allocation alive via an Arc<dyn Keepalive>.
UnsafeLocalMemory
Raw pointer-based local memory handle that supports both CPU and GPU memory.

Traits§

Keepalive
Marker trait: the implementor keeps a backing memory allocation alive.
RdmaLocalMemory
Handle to a contiguous region of local memory.

Functions§

is_device_ptr
Returns true when addr is a CUDA device pointer.