Synchronize MLX execution
mlx_synchronize.RdWaits for outstanding operations on the specified device or stream to complete.
Usage
mlx_synchronize(device = c("gpu", "cpu"))Arguments
- device
- Device identifier ("gpu" or "cpu") or an - mlx_streamcreated by- mlx_new_stream().
Examples
x <- as_mlx(matrix(1:4, 2, 2))
mlx_synchronize("gpu")
stream <- mlx_new_stream()
mlx_synchronize(stream)