- class cupy.cuda.Event(block=False, disable_timing=False, interprocess=False)#
CUDA event, a synchronization point of CUDA streams.
This class handles the CUDA event handle in RAII way, i.e., when an Event instance is destroyed by the GC, its handle is also destroyed.
~Event.ptr (intptr_t) – Raw event handle.
- record(self, stream=None)#
Records the event to a stream.
stream (cupy.cuda.Stream) – CUDA stream to record event. The null stream is used by default.
Synchronizes all device work to the event.
If the event is created as a blocking event, it also blocks the CPU thread until the event is done.
- __eq__(value, /)#
- __ne__(value, /)#
- __lt__(value, /)#
- __le__(value, /)#
- __gt__(value, /)#
- __ge__(value, /)#
True if the event is done.