pub unsafe extern "C" fn cuEventQuery(hEvent: CUevent) -> CUresultExpand description
Queries an event’s status.
Queries the status of all work currently captured by hEvent. See cuEventRecord for details on what is captured by an event.
Returns cudaError_enum::CUDA_SUCCESS if all captured work has been completed, or cudaError_enum::CUDA_ERROR_NOT_READY if any captured work is incomplete.
For the purposes of Unified Memory, a return value of cudaError_enum::CUDA_SUCCESS is equivalent to having called cuEventSynchronize.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
hEvent: Event to query
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_HANDLECUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_NOT_READY
See also: cuEventCreate, cuEventRecord, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime, cudaEventQuery.