-
Notifications
You must be signed in to change notification settings - Fork 332
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
Cannot statically link libtorch to build on M1 #786
Comments
Not sure this is M1 or mac related, my guess is more that you're using an old version of torch-sys/tch which are not compatible with pytorch 2.0.1 (also even if the latest version of |
Even with the latest version of torsh-sys the build is failing :/ Also maybe I'm wrong but from what I seen pytorch is only available in 2.0.1 on homebrew. |
Still with the same errors? |
Yes still the same error. I managed to fix it by using your feature
|
Dynamic linking is the default, you may have to tweak your |
I tried to build without statically linked pytorch, it works. But I'm still getting an error when trying the static linked build:
And of course if I try the
|
I guess it's a pretty common issue but I've installed pytorch via homebrew and added the path to it to my env and when I'm trying to build my program, the build is failing with a pretty huge error message (See below).
The text was updated successfully, but these errors were encountered: