ml-explore / mlx

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

[BUG] Using `make test` (e.g. ctest) causes segfaults #1031

Closed awni closed 1 month ago

awni commented 1 month ago

Build the C++ back-end and run the tests using ctest:

cmake .. && make -j
make test

Sample output:

 23/188 Test  #23: test reshape and transpose grads .............   Passed    0.05 sec
        Start  24: test copy grads
 24/188 Test  #24: test copy grads ..............................***Exception: SegFault  0.05 sec
        Start  25: test matmul vjp
 25/188 Test  #25: test matmul vjp ..............................   Passed    0.05 sec