Determines whether the GPU backend was compiled and is available.
Examples
if (mlx_has_gpu()) {
mlx_synchronize("gpu")
} else {
mlx_synchronize("cpu")
}
Determines whether the GPU backend was compiled and is available.
if (mlx_has_gpu()) {
mlx_synchronize("gpu")
} else {
mlx_synchronize("cpu")
}