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