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,
Creates an event from EGLSync object.
Creates an event *ph_event from an
EGLSyncKHRegl_sync with the flags specified viaflags. 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 usesevent_synchronize()to wait on an event created with this flag will block until the event has actually been completed.
Once the
egl_syncgets destroyed,cuEventDestroyis the only API that can be invoked on the event.cuEventRecordand TimingData are not supported for events created from EGLSync. TheEGLSyncKHRis 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