cuda.bindings._v2.driver.event_record#
- cuda.bindings._v2.driver.event_record(intptr_t h_event, intptr_t h_stream)#
Records an event.
Captures in
h_eventthe contents ofh_streamat the time of this call.h_eventandh_streammust be from the same context otherwiseCUDA_ERROR_INVALID_HANDLEis returned. Calls such asevent_query()orstream_wait_event()will then examine or wait for completion of the work that was captured. Uses ofh_streamafter this call do not modifyh_event. See note on default stream behavior for what is captured in the default case.event_record()can be called multiple times on the same event and will overwrite the previously captured state. Other APIs such asstream_wait_event()use the most recently captured state at the time of the API call, and are not affected by later calls toevent_record(). Before the first call toevent_record(), an event represents an empty set of work, so for exampleevent_query()would returnCUDA_SUCCESS.- Parameters:
h_event (intptr_t) – Event to record.
h_stream (intptr_t) – Stream to record event for.
See also
cuEventRecord