pub unsafe extern "C" fn hipFree(ptr: *mut c_void) -> hipError_tExpand description
@brief Free memory allocated by the HIP-Clang hip memory allocation API. 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 @returns #hipErrorInvalidDevicePointer (if pointer is invalid, including host pointers allocated with hipHostMalloc)
@see hipMalloc, hipMallocPitch, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc