Function cuEventSynchronize

Source
pub unsafe extern "C" fn cuEventSynchronize(
    hEvent: CUevent,
) -> CUresult
Expand description

\brief Waits for an event to complete

Waits until the completion of all work currently captured in \p hEvent. See ::cuEventRecord() for details on what is captured by an event.

Waiting for an event that was created with the ::CU_EVENT_BLOCKING_SYNC flag will cause the calling CPU thread to block until the event has been completed by the device. If the ::CU_EVENT_BLOCKING_SYNC flag has not been set, then the CPU thread will busy-wait until the event has been completed by the device.

\param hEvent - Event to wait for

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE \notefnerr

\sa ::cuEventCreate, ::cuEventRecord, ::cuEventQuery, ::cuEventDestroy, ::cuEventElapsedTime, ::cudaEventSynchronize