pub unsafe extern "C" fn cuGreenCtxRecordEvent(
hCtx: CUgreenCtx,
hEvent: CUevent,
) -> CUresult
Expand description
\brief Records an event.
Captures in \p hEvent all the activities of the green context of \p hCtx at the time of this call. \p hEvent and \p hCtx must be from the same primary context otherwise ::CUDA_ERROR_INVALID_HANDLE is returned. Calls such as ::cuEventQuery() or ::cuGreenCtxWaitEvent() will then examine or wait for completion of the work that was captured. Uses of \p hCtx after this call do not modify \p hEvent.
\note The API will return ::CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED if the specified green context \p hCtx has a stream in the capture mode. In such a case, the call will invalidate all the conflicting captures.
\param hCtx - Green context to record event for \param hEvent - Event to record
\return ::CUDA_SUCCESS ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED
\sa ::cuGreenCtxWaitEvent, ::cuEventRecord, ::cuCtxRecordEvent, ::cuCtxWaitEvent