Stream#

typedef struct mlx_stream_ *mlx_stream#

A MLX stream object.

mlx_stream mlx_stream_new(int index, mlx_device dev)#

Returns a new stream, with specified index, on a device.

mlx_stream mlx_stream_new_on_device(mlx_device dev)#

Returns a new stream on a device.

bool mlx_stream_equal(mlx_stream lhs, mlx_stream rhs)#

Check if streams are the same.

mlx_device mlx_stream_get_device(mlx_stream stream)#

Return the device of the stream.

void mlx_synchronize(mlx_stream stream)#

Synchronize with the provided stream.

mlx_stream mlx_default_stream(mlx_device dev)#

Returns the default stream on the given device.

mlx_stream mlx_set_default_stream(mlx_stream stream)#

Set default stream.

mlx_stream mlx_cpu_stream()#

Returns the current default CPU stream.

mlx_stream mlx_gpu_stream()#

Returns the current default GPU stream.