Closed NripeshN closed 2 weeks ago
Looks like it's not applying the metal-cpp patch properly.
Could you try a couple things:
which patch
and paste here?Looks like it's not applying the metal-cpp patch properly.
Could you try a couple things:
- Wipe the build/ directory and try again?
- Check the output of
which patch
and paste here?
I have created new venv
s and tried installing without cache too. I still get this error
(venv) nripeshniketan@Nripeshs-MBP ~/D/p/mlx (main) [0|1]> which patch
/opt/homebrew/bin/patch
🤷♂️ not sure why it's not applying the patch. You could try changing this line https://github.com/ml-explore/mlx/blob/main/CMakeLists.txt#L97
to
PATCH_COMMAND /usr/bin/patch -N -i ${METAL_CPP_PATCH} || true
If that doesn't work, we could try to have you apply the patch manually and see what the error is.
🤷♂️ not sure why it's not applying the patch. You could try changing this line https://github.com/ml-explore/mlx/blob/main/CMakeLists.txt#L97
to
PATCH_COMMAND /usr/bin/patch -N -i ${METAL_CPP_PATCH} || true
If that doesn't work, we could try to have you apply the patch manually and see what the error is.
This fixed the issue for me
Good to know. We may need to hard code that path. I don't know why the other version of patch
doesn't work ..
Hi @awni I am trying to install
mlx
from the main branch but I am getting the following error