ModelStreams

Trait ModelStreams 

Source
pub trait ModelStreams {
    // Provided methods
    fn default_stream(&self) -> u64 { ... }
    fn create_stream(&self) -> Result<u64> { ... }
    fn create_event(&self) -> Result<u64> { ... }
    fn record_event(&self, _event: u64, _stream: u64) -> Result<()> { ... }
    fn stream_wait_event(&self, _stream: u64, _event: u64) -> Result<()> { ... }
    fn synchronize(&self, _stream: u64) -> Result<()> { ... }
}
Expand description

2026-09-26: Streams, events and host synchronisation.

Provided Methods§

Source

fn default_stream(&self) -> u64

2026-09-25: The default stream. Default 0.

Source

fn create_stream(&self) -> Result<u64>

2026-09-25: A new stream. Default Ok(0).

Source

fn create_event(&self) -> Result<u64>

2026-09-25: A new event. Default Ok(0).

Source

fn record_event(&self, _event: u64, _stream: u64) -> Result<()>

2026-09-25: Record event on stream. Default: Ok(()).

Source

fn stream_wait_event(&self, _stream: u64, _event: u64) -> Result<()>

2026-09-25: Make stream wait for event on the device; the host does not block. Default: Ok(()).

Source

fn synchronize(&self, _stream: u64) -> Result<()>

2026-09-25: Block the host until stream’s work has completed. Default: Ok(()).

Implementors§