cudaError_t cudaEventRecord ( cudaEvent_t  event,
cudaStream_t  stream 
)

Records an event. If stream is non-zero, the event is recorded after all preceding operations in the stream have been completed; otherwise, it is recorded after all preceding operations in the CUDA context have been completed. Since this operation is asynchronous, cudaEventQuery() and/or cudaEventSynchronize() must be used to determine when the event has actually been recorded.

If cudaEventRecord() has previously been called and the event has not been recorded yet, this function returns cudaErrorInvalidValue.

Parameters:
event - Event to record
stream - Stream in which to record event
Returns:
cudaSuccess, cudaErrorInvalidValue, cudaErrorInitializationError, cudaErrorPriorLaunchFailure, cudaErrorInvalidResourceHandle
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaEventCreate, cudaEventCreateWithFlags, cudaEventQuery, cudaEventSynchronize, cudaEventDestroy, cudaEventElapsedTime


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA