Function cuEventQuery

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

\brief Queries an event’s status

Queries the status of all work currently captured by \p hEvent. See ::cuEventRecord() for details on what is captured by an event.

Returns ::CUDA_SUCCESS if all captured work has been completed, or ::CUDA_ERROR_NOT_READY if any captured work is incomplete.

For the purposes of Unified Memory, a return value of ::CUDA_SUCCESS is equivalent to having called ::cuEventSynchronize().

\param hEvent - Event to query

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_NOT_READY \notefnerr

\sa ::cuEventCreate, ::cuEventRecord, ::cuEventSynchronize, ::cuEventDestroy, ::cuEventElapsedTime, ::cudaEventQuery