cuda.bindings._v2.driver.green_ctx_wait_event#
- cuda.bindings._v2.driver.green_ctx_wait_event(intptr_t h_ctx, intptr_t h_event)#
Make a green context wait on an event.
Makes all future work submitted to green context
h_ctxwait for all work captured inh_event. The synchronization will be performed on the device and will not block the calling CPU thread. Seegreen_ctx_record_event()orevent_record(), for details on what is captured by an event.- Parameters:
h_ctx (intptr_t) – Green context to wait.
h_event (intptr_t) – Event to wait on.
Note
h_eventmay be from a different context or device thanh_ctx.Note
The API will return
CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTEDand invalidate the capture if the specified eventh_eventis part of an ongoing capture sequence or if the specified green contexth_ctxhas a stream in the capture mode.See also
cuGreenCtxWaitEvent