Function hip_runtime_sys::hipFree
source · pub unsafe extern "C" fn hipFree(ptr: *mut c_void) -> hipError_tExpand description
@brief Free memory allocated by the hcc 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 @return #hipSuccess @return #hipErrorInvalidDevicePointer (if pointer is invalid, including host pointers allocated with hipHostMalloc)
@see hipMalloc, hipMallocPitch, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc