Module B.Stream

Async execution streams / command queues

type t
val create : Device.t -> t
val create_non_blocking : Device.t -> t

A stream that does NOT synchronise implicitly with the device's default stream (CUDA/HIP: the non-blocking flag). Backends whose queues are already independent return the same as create; backends with no asynchrony (Native, Interpreter) return a unit stream. Backends that cannot provide the property raise Feature_not_supported.

val destroy : t -> unit
val synchronize : t -> unit
val default : Device.t -> t