Streams provide independent execution queues on a device, allowing overlap of computation and finer control over scheduling.
mlx_default_stream() returns the current default stream for a device.
Usage
mlx_new_stream(device = mlx_device())
mlx_default_stream(device = mlx_device())Arguments
- device
Execution target for APIs that expose a one-off device or stream override. Supply
"gpu","cpu", or anmlx_streamcreated viamlx_new_stream(). Ordinary array operations use the currentmlx_device()instead.