Skip to main content

malloc_managed

Function malloc_managed 

Source
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