Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLX in C++ example #1736

Merged
merged 3 commits into from
Jan 3, 2025
Merged

MLX in C++ example #1736

merged 3 commits into from
Jan 3, 2025

Conversation

awni
Copy link
Member

@awni awni commented Dec 27, 2024

Adds:

  • Very minimal example project using MLX in C++ with Cmake
  • Documentation page on the same in the developer docs
  • Convenience commands to get the --cmake-dir and --version using mlx as a python package. E.g. python -m mlx --cmake-dir gets the cmake directory for find_package. Simplifies using MLX in CMake as a dependency.

@awni awni force-pushed the mlx_in_cpp_example branch from e65b73b to bca0ad4 Compare December 27, 2024 16:23
@awni awni force-pushed the mlx_in_cpp_example branch from bca0ad4 to 5e3a577 Compare January 2, 2025 02:24
Copy link
Member

@angeloskath angeloskath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this :-)

So far I have been building a separate mlx library for C++ dev. Didn't think of making this.

@awni awni force-pushed the mlx_in_cpp_example branch 2 times, most recently from 4eae074 to cd92634 Compare January 3, 2025 00:35
@awni awni force-pushed the mlx_in_cpp_example branch from cd92634 to 546f2f5 Compare January 3, 2025 01:08
@awni awni merged commit c9d30aa into main Jan 3, 2025
5 checks passed
@awni awni deleted the mlx_in_cpp_example branch January 3, 2025 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants