Skip to content

Files

Latest commit

 

History

History
 
 

cmake_project

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Build and Run

Install MLX with Python:

pip install mlx>=0.22

Build the C++ example:

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

Run the C++ example:

./build/example

which should output:

array([2, 4, 6], dtype=int32)