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

Method synchronize

crates/cust/src/event.rs:209–214  ·  view source on GitHub ↗

Wait for an event to complete. Blocks thread execution until all work submitted before the event was recorded has completed. `EventFlags::BLOCKING_SYNC` controls the mode of blocking. If the flag is set on event creation, the thread will sleep. Otherwise, the thread will busy-wait. # Example ``` # use cust::quick_init; # use cust::stream::{Stream, StreamFlags}; # use std::error::Error; # fn mai

(&self)

Source from the content-addressed store, hash-verified

207 /// }
208 /// ```
209 pub fn synchronize(&self) -> CudaResult<()> {
210 unsafe {
211 cuEventSynchronize(self.0).to_result()?;
212 Ok(())
213 }
214 }
215
216 /// Return the duration between two events.
217 ///

Callers 12

mainFunction · 0.45
final_imageMethod · 0.45
renderMethod · 0.45
mainFunction · 0.45
setup_stateMethod · 0.45
buildMethod · 0.45
newMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45

Calls 1

to_resultMethod · 0.45