pub fn malloc_managed(
size: usize,
flags: MemAttachFlags,
) -> CudaRtResult<DevicePtr>Expand description
Allocate unified managed memory accessible from both CPU and GPU.
Mirrors cudaMallocManaged.
§Errors
CudaRtError::NotSupported— device does not support managed memory.CudaRtError::MemoryAllocation— out of memory.