ml-explore / mlx

MLX: An array framework for Apple silicon
https://ml-explore.github.io/mlx/
MIT License
17.37k stars 1.01k forks source link

Use osx deployment target to pick Metal version #1595

Closed awni closed 3 days ago

awni commented 4 days ago

Should close #1170. You can build with:

cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET=13.5

and it will use the correct version of Metal for that OS.