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_ctx wait for all work captured in h_event. The synchronization will be performed on the device and will not block the calling CPU thread. See green_ctx_record_event() or event_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_event may be from a different context or device than h_ctx.

Note

The API will return CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED and invalidate the capture if the specified event h_event is part of an ongoing capture sequence or if the specified green context h_ctx has a stream in the capture mode.

See also

cuGreenCtxWaitEvent