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 segfault when running unit tests on M1 Pro #23

Closed
pbashyal-nmdp opened this issue Dec 6, 2023 · 0 comments · Fixed by #34
Closed

mlx segfault when running unit tests on M1 Pro #23

pbashyal-nmdp opened this issue Dec 6, 2023 · 0 comments · Fixed by #34
Labels
bug Something isn't working

Comments

@pbashyal-nmdp
Copy link

Getting segfault with unit tests on Apple M1 Pro and 13.6.2

$ pip install numpy
Collecting numpy
  Downloading numpy-1.26.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 3.0 MB/s eta 0:00:00
Downloading numpy-1.26.2-cp312-cp312-macosx_11_0_arm64.whl (13.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.7/13.7 MB 9.6 MB/s eta 0:00:00
Installing collected packages: numpy
Successfully installed numpy-1.26.2
$ env CMAKE_BUILD_PARALLEL_LEVEL="" pip install .
Processing ml/mlx
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: mlx
  Building wheel for mlx (pyproject.toml) ... done
  Created wheel for mlx: filename=mlx-0.0.3.dev2023126+8c96b9a-cp312-cp312-macosx_13_0_arm64.whl size=9421096 sha256=6aaf46747055c8825696a7892f42f43d959842b44446079e28b4933dc9ae2da3
  Stored in directory: /private/var/folders/nm/nyjkgrfn3fg207v5z5rz1w8m0000gp/T/pip-ephem-wheel-cache-93ng7che/wheels/1a/d0/9d/cbc077676fa323205d1fc73c17c324df59cac918a9352a52e5
Successfully built mlx
Installing collected packages: mlx
  Attempting uninstall: mlx
    Found existing installation: mlx 0.0.3.dev2023126+8c96b9a
    Uninstalling mlx-0.0.3.dev2023126+8c96b9a:
      Successfully uninstalled mlx-0.0.3.dev2023126+8c96b9a
Successfully installed mlx-0.0.3.dev2023126+8c96b9a
$ python -m unittest discover python/tests
.............................................ssss..........[1]    72687 segmentation fault  python -m unittest discover python/tests
@jagrit06 jagrit06 linked a pull request Dec 6, 2023 that will close this issue
@awni awni added the bug Something isn't working label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants