Skip to main content

free_host

Function free_host 

Source
pub unsafe fn free_host(ptr: *mut c_void) -> CudaRtResult<()>
Expand description

Free page-locked host memory previously allocated with malloc_host.

Mirrors cudaFreeHost.

§Errors

Propagates driver errors.

§Safety

ptr must have been returned by malloc_host and must not have been freed already.