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
CudaRtError::MemoryAllocation— out of host memory.