Add the event to the given stream of work. The event will be completed when the stream completes all previously-submitted work and reaches the event in the queue. This function is used together with `query`, `synchronize`, and `elapsed_time_f32`. See the respective functions for more information. If the event is created with `EventFlags::BLOCKING_SYNC`, then `record` blocks until the event has a
(&self, stream: &Stream)
| 129 | /// } |
| 130 | /// ``` |
| 131 | pub fn record(&self, stream: &Stream) -> CudaResult<()> { |
| 132 | unsafe { |
| 133 | cuEventRecord(self.0, stream.as_inner()).to_result()?; |
| 134 | Ok(()) |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | /// Return whether the stream this event was recorded on (see `record`) has processed this event |
| 139 | /// yet or not. A return value of `EventStatus::Ready` indicates that all work submitted before |