Function cuGreenCtxWaitEvent

Source
pub unsafe extern "C" fn cuGreenCtxWaitEvent(
    hCtx: CUgreenCtx,
    hEvent: CUevent,
) -> CUresult
Expand description

\brief Make a green context wait on an event

Makes all future work submitted to green context \p hCtx wait for all work captured in \p hEvent. The synchronization will be performed on the device and will not block the calling CPU thread. See ::cuGreenCtxRecordEvent() or ::cuEventRecord(), for details on what is captured by an event.

\note \p hEvent may be from a different context or device than \p hCtx.

\note The API will return ::CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED and invalidate the capture if the specified event \p hEvent is part of an ongoing capture sequence or if the specified green context \p hCtx has a stream in the capture mode.

\param hCtx - Green context to wait \param hEvent - Event to wait on

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED

\sa ::cuGreenCtxRecordEvent, ::cuStreamWaitEvent ::cuCtxRecordEvent, ::cuCtxWaitEvent