Function hip_sys::hiprt::hipEventQuery
source · pub unsafe extern "C" fn hipEventQuery(
event: *mut ihipEvent_t
) -> hipError_tExpand description
@brief Query event status
@param[in] event Event to query. @returns #hipSuccess, #hipErrorNotReady, #hipErrorInvalidHandle, #hipErrorInvalidValue, #hipErrorNotInitialized, #hipErrorLaunchFailure
Query the status of the specified event. This function will return #hipSuccess if all commands in the appropriate stream (specified to hipEventRecord()) have completed. If that work has not completed, or if hipEventRecord() was not called on the event, then #hipErrorNotReady is returned.
@see hipEventCreate, hipEventCreateWithFlags, hipEventRecord, hipEventDestroy, hipEventSynchronize, hipEventElapsedTime