Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ brew install cmake
To build, run the following commands:

```shell
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
```

From the `build/` directory, you can run an [example](examples/example.c)
that uses MLX C with `./example`.

## Contributing
## Contributing

Check out the [contribution guidelines](CONTRIBUTING.md) for more information
on contributing to MLX C. See the
Expand Down
5 changes: 2 additions & 3 deletions docs/src/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ To build MLX C, run the following commands:

.. code-block:: shell

mkdir build && cd build/
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

MLX C will fetch `MLX <https://github.com/ml-explore/mlx>`_ under the hood,
compile it, and then compile the C API.