-
Notifications
You must be signed in to change notification settings - Fork 20
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
Incorrect library name on Mac #102
Comments
I want to add that I think it would be very nice if we could have a mac build of the nnops so testing could be done locally instead of spawn a Linux EC2 instance. |
There is this variable from cpp_extension that we could use:
|
You also need to vary whether the name starts with "lib". It does on Linux and Mac, but not on Windows. Linux: libNNPOpsPyTorch.so |
I'm trying to build NNPOps on a Mac. It builds correctly, but when I try to
import NNPOps
it fails with this error:The problem comes from this line:
NNPOps/src/pytorch/__init__.py
Line 7 in 054d487
On Macs, shared libraries have the extension
.dylib
rather than.so
. It also won't work on Windows where they have the extension.dll
.The text was updated successfully, but these errors were encountered: