cuda.bindings._v2.driver.event_synchronize#
- cuda.bindings._v2.driver.event_synchronize(intptr_t h_event)#
Waits for an event to complete.
Waits until the completion of all work currently captured in
h_event. Seeevent_record()for details on what is captured by an event. Waiting for an event that was created with theCU_EVENT_BLOCKING_SYNCflag will cause the calling CPU thread to block until the event has been completed by the device. If theCU_EVENT_BLOCKING_SYNCflag has not been set, then the CPU thread will busy-wait until the event has been completed by the device.- Parameters:
h_event (intptr_t) – Event to wait for.
See also
cuEventSynchronize