Skip to main content

Module stream

Module stream 

Source
Expand description

CUDA stream management.

Streams are command queues on the GPU. Commands within a stream execute in order. Different streams can execute concurrently.

§Example

// Assuming `ctx` is an Arc<Context> obtained from Context::new(...)
let stream = Stream::new(&ctx)?;
// ... enqueue work on the stream ...
stream.synchronize()?;

Structs§

Stream
A CUDA stream (GPU command queue).