Skip to main content

malloc_host

Function malloc_host 

Source
pub fn malloc_host(size: usize) -> CudaRtResult<*mut c_void>
Expand description

Allocate size bytes of pinned (page-locked) host memory.

Mirrors cudaMallocHost.

Returns a raw host pointer that must be freed with free_host.

§Errors