Function hip_runtime_sys::hipEventSynchronize
source · pub unsafe extern "C" fn hipEventSynchronize(
event: hipEvent_t
) -> hipError_tExpand description
@brief Wait for an event to complete.
This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().
If hipEventRecord() has not been called on @p event, this function returns immediately.
TODO-hip- This function needs to support hipEventBlockingSync parameter.
@param[in] event Event on which to wait. @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized, #hipErrorInvalidHandle, #hipErrorLaunchFailure
@see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventElapsedTime