Building and Installing#
CMake is required to build MLX C. You can install it with Homebrew:
brew install cmake
To build MLX C, run the following commands:
mkdir build && cd build/
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
MLX C will fetch MLX under the hood, compile it, and then compile the C API.