def record(self, stream=None): """Records the event to a stream. Args: stream (cupy.cuda.Stream): CUDA stream to record event. The null stream is used by default. .. seealso:: :meth:`cupy.cuda.Stream.record` """ if stream is None: stream = Stream(null=True) runtime.eventRecord(self.ptr, stream.ptr)
def record(self, stream=None): """Records the event to a stream. Args: stream (cupy.cuda.Stream): CUDA stream to record event. The null stream is used by default. .. seealso:: :meth:`cupy.cuda.Stream.record` """ if stream is None: stream = Stream(null=True) runtime.eventRecord(self.ptr, stream.ptr)
def record(self, event=None): """Records an event on the stream. Args: event (None or cupy.cuda.Event): CUDA event. If None, then a new plain event is created and used. Returns: cupy.cuda.Event: The recorded event. .. seealso:: :meth:`cupy.cuda.Event.record` """ if event is None: event = Event() runtime.eventRecord(event.ptr, self.ptr) return event
def record(self, event=None): """Records an event on the stream. Args: event (None or cupy.cuda.Event): CUDA event. If None, then a new plain event is created and used. Returns: cupy.cuda.Event: The recorded event. .. seealso:: :meth:`cupy.cuda.Event.record` """ if event is None: event = Event() runtime.eventRecord(event.ptr, self.ptr) return event