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

libmxnet.so is libmxnet.dylib on OSX #1

Closed
kalinon opened this issue Jul 12, 2021 · 7 comments
Closed

libmxnet.so is libmxnet.dylib on OSX #1

kalinon opened this issue Jul 12, 2021 · 7 comments

Comments

@kalinon
Copy link

kalinon commented Jul 12, 2021

Looks like the compiled version of mxnet outputs a dylib on OSX. Both the python package and compiling it from scratch generate this file. Since the link and python code look for the .so file specifically the shard dies on compliation.

Example paths:

/usr/local/lib/python3.9/site-packages/mxnet/libmxnet.dylib
~/github.com/apache/incubator-mxnet/libmxnet.dylib

replacing the @[Link(ldflags: "`python '#{__DIR__}/libmxnet.py' library`")] with: @[Link(ldflags: "<dylib path>")] works. The example code from https://github.com/toddsundsted/deep-learning also works with the dylib, so it is probably safe to look for either .so or .dylib

@toddsundsted
Copy link
Owner

thanks @kalinon let me take a look at that. the existing solution dates back to maybe pre-1.2.0 and maybe the dylib wasn't present, or maybe i didn't know how to make it work.

@toddsundsted
Copy link
Owner

@kalinon how are you installing mxnet? i last installed with miniconda and that seems to provide the *.so

@toddsundsted
Copy link
Owner

e117d0b should fix this.

i should probably just use libinfo.py.

@kalinon
Copy link
Author

kalinon commented Jul 16, 2021

@toddsundsted sorry for the late response. So to get mxnet installed i first installed it via pip3 install mxnet but that didnt give me a .so so I ended up compiling it manually.

$ pip3 list | grep mxnet
mxnet                 1.8.0.post0

@kalinon
Copy link
Author

kalinon commented Jul 16, 2021

e117d0b should fix this.

i should probably just use libinfo.py.

Ill give it a try!

@toddsundsted
Copy link
Owner

thanks! let me know what happens. i'm happy to do more troubleshooting.

@kalinon
Copy link
Author

kalinon commented Jul 18, 2021

@toddsundsted this worked. I had to link my python3 to python but then i could then compile no problems. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants