pub unsafe extern "C" fn cudaEventQuery(
event: cudaEvent_t,
) -> cudaError_tExpand description
Queries an event’s status.
Queries the status of all work currently captured by event. See cudaEventRecord for details on what is captured by an event.
Returns cudaError_t::CUDA_SUCCESS if all captured work has been completed, or cudaError_t::CUDA_ERROR_NOT_READY if any captured work is incomplete.
For the purposes of Unified Memory, a return value of cudaError_t::CUDA_SUCCESS is equivalent to having called cudaEventSynchronize.
Note that this function may also return error codes from previous, asynchronous launches.
Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.
Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.
Note: Returns cudaError_t::CUDA_ERROR_INVALID_HANDLE in the event of being passed NULL as the input event.
§Parameters
event: Event to query
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_NOT_READYcudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_INVALID_HANDLEcudaError_t::CUDA_ERROR_LAUNCH_FAILED
See also: cudaEventCreate (C API), cudaEventCreateWithFlags, cudaEventRecord, cudaEventSynchronize, cudaEventDestroy, cudaEventElapsedTime, cuEventQuery.