pub fn malloc(size: usize) -> CudaRtResult<DevicePtr>Expand description
Allocate size bytes of device memory.
Mirrors cudaMalloc.
§Errors
CudaRtError::DriverNotAvailable— driver not loaded.CudaRtError::MemoryAllocation— out of device memory.
pub fn malloc(size: usize) -> CudaRtResult<DevicePtr>Allocate size bytes of device memory.
Mirrors cudaMalloc.
CudaRtError::DriverNotAvailable — driver not loaded.CudaRtError::MemoryAllocation — out of device memory.