cubecl_hip_sys

Function hipEventSynchronize

Source
pub unsafe extern "C" fn hipEventSynchronize(
    event: hipEvent_t,
) -> hipError_t
Expand 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 #hipSuccess when no event is captured.

@param[in] event Event on which to wait.

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized, #hipErrorInvalidHandle, #hipErrorLaunchFailure

@see hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventElapsedTime