Skip to main content

sync_stream

Function sync_stream 

Source
pub unsafe fn sync_stream(stream: cudaStream_t) -> Result<(), CudaError>
Expand description

Synchronize the given explicit CUDA stream, blocking until all previously enqueued work on stream has completed.

ยงSafety

The caller must ensure that stream is a valid CUDA stream handle.