Stream
An execution stream: an ordered queue of device work. Operations submitted to it run in order, asynchronously of the host. A created stream pipelines submission and overlaps independent work; the per-device default stream dispatches on the calling thread instead.
device (property)
The device this stream runs on.
__init__
__init__(self, /, *args, **kwargs)
Initialize self. See help(type(self)) for accurate signature.
create
create(*args, **kwargs)
create(device: clika_runtime._core.Device) -> clika_runtime._core.Stream
Allocate a fresh non-default stream on device (for overlapping work).
default_stream
default_stream(*args, **kwargs)
default_stream(device: clika_runtime._core.Device) -> clika_runtime._core.Stream
The per-device default stream; always valid.
is_default
is_defaultis_default(self) -> bool
is_default(self) -> bool
True if this is the device's default stream.
query_idle
query_idlequery_idle(self) -> bool
query_idle(self) -> bool
True if the stream currently has no work in flight (a hint, not a barrier).
synchronize
synchronizesynchronize(self) -> None
synchronize(self) -> None
Block until all work submitted on this stream has completed.