cuda.bindings._v2.driver.event_create_from_egl_sync#

cuda.bindings._v2.driver.event_create_from_egl_sync(
intptr_t egl_sync,
unsigned int flags,
) → intptr_t#

Creates an event from EGLSync object.

Creates an event *ph_event from an EGLSyncKHR egl_sync with the flags specified via flags. Valid flags include:.

  • CU_EVENT_DEFAULT: Default event creation flag.

  • CU_EVENT_BLOCKING_SYNC: Specifies that the created event should use blocking synchronization. A CPU thread that uses event_synchronize() to wait on an event created with this flag will block until the event has actually been completed.

Once the egl_sync gets destroyed, cuEventDestroy is the only API that can be invoked on the event. cuEventRecord and TimingData are not supported for events created from EGLSync. The EGLSyncKHR is an opaque handle to an EGL sync object. typedef void* EGLSyncKHR.

Parameters:
  • egl_sync (intptr_t) – Opaque handle to EGLSync object.

  • flags (unsigned int) – Event creation flags.

Returns:

Returns newly created event.

Return type:

intptr_t

See also

cuEventCreateFromEGLSync