Skip to main content

malloc

Function malloc 

Source
pub fn malloc(size: usize) -> CudaRtResult<DevicePtr>
Expand description

Allocate size bytes of device memory.

Mirrors cudaMalloc.

§Errors