Skip to main content

cudaExecutionCtxWaitEvent

Function cudaExecutionCtxWaitEvent 

Source
pub unsafe extern "C" fn cudaExecutionCtxWaitEvent(
    ctx: cudaExecutionContext_t,
    event: cudaEvent_t,
) -> cudaError_t
Expand description

Make an execution context wait on an event.

Makes all future work submitted to execution context ctx wait for all work captured in event. The synchronization will be performed on the device and will not block the calling CPU thread. See cudaExecutionCtxRecordEvent for details on what is captured by an event. If the execution context passed to ctx is the device (primary) context obtained via cudaDeviceGetExecutionCtx, all green contexts created on the device will wait for event as well.

ยงParameters

  • ctx: Execution context to wait for (required parameter, see note below).
  • event: Event to wait on.