MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / record

Method record

crates/cust/src/event.rs:131–136  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

final_imageMethod · 0.80
renderMethod · 0.80

Calls 2

to_resultMethod · 0.45
as_innerMethod · 0.45