Skip to main content

cuEventQuery

Function cuEventQuery 

Source
pub unsafe extern "C" fn cuEventQuery(hEvent: CUevent) -> CUresult
Expand 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

See also: cuEventCreate, cuEventRecord, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime, cudaEventQuery.