hipFreeHost

Function hipFreeHost 

Source
pub unsafe extern "C" fn hipFreeHost(ptr: *mut c_void) -> hipError_t
Expand description

@brief Frees page-locked memory This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

@param[in] ptr Pointer to memory to be freed @returns #hipSuccess, #hipErrorInvalidValue (if pointer is invalid, including device pointers allocated with hipMalloc)