pub unsafe extern "C" fn hipGetLastError() -> hipError_t
Expand description
ยง@} / /**
@defgroup Error Error Handling @{ This section describes the error handling functions of HIP runtime API. / /** @brief Return last error returned by any HIP runtime API call and resets the stored error code to #hipSuccess
@returns return code from last HIP called from the active host thread
Returns the last error that has been returned by any of the runtime calls in the same host thread, and then resets the saved error to #hipSuccess.
@see hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t