-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Installer not setting rpath for MAGMA (OS X w/ GPU) #27409
Comments
Thanks for reporting. I suppose this is only an issue if MAGMA is installed in a non-system path? Is this something you could submit a PR for? cc @soumith for MAGMA |
Yes, I'm sure it wouldn't arise if MAGMA was installed in a system path. There isn't a package installer on OSX that supports MAGMA, which needs to get compiled against the system's CUDA anyway. MAGMA from source wants to install at The pytorch build process knows to look for, and properly finds, MAGMA at that path. The pytorch build process has become so complex at this point, I'm reluctant to submit a PR that would touch it. Also, since not many of the recent master builds are passing CI, I wouldn't really have an effective way of testing the PR against platforms other than my own. |
@soumith I think you're more familiar with magma et al. Who should take a look at this? |
in terms of cmake / rpath, maybe @xuhdev would know. |
Could you try from the latest source? A lot of things have changed since then, and I doubt whether it still exist in the latest version. For the old version, I don't think it hurts to stick to your workaround (i.e., |
Thanks for the info. I'll try to look into this on Monday. |
Did you install from the source? If so, would you mind showing the output of
|
MAGMA_LIBRARIES:FILEPATH=/usr/local/magma/lib/libmagma.so That is where they live. |
(Sorry for asking more questions; Because I can't reproduce this issue, I have to rely on your info) Could you show the path printed from |
@xuhdev Hey I'm happy to help any way I can! (Sorry for the delay to your prior question - I was out of town on business.) Here's what I get from a fresh compile:
And after
|
Oops, I'm sorry, I meant |
Thought you might... Before: After: And the diff is:
|
When you built PyTorch, did you have |
Nope, and nope.
|
I have no idea of what's going on in your situation. Your RPATH is empty upon built. I probably will revisit this after I have some other thoughts. Thanks for the past info though! |
Would a build log of some kind help?
… On Dec 5, 2019, at 1:15 PM, Hong Xu ***@***.***> wrote:
I have no idea of what's going on in your situation. Your RPATH is empty upon built. I probably will revisit this after I have some other thoughts. Thanks for the past info though!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@elbamos Sure; Let's see whether we can sniff something there |
@xuhdev Here you go: |
🐛 Bug
The installation scripts aren't adding the magma path to the dylib. This is at least as far back as 1.1, and exists in the current master.
It's easily fixable post-install with
install_name_tool -add_rpath /usr/local/magma/lib /path/to/libtorch.dylib
(actually in 1.1 its thecaffe_gpu
dylib), but of course this should be set properly by the installer.To Reproduce
Steps to reproduce the behavior:
import torch
Expected behavior
Not throw an exception, and instead return silently and run properly.
Environment
PyTorch version: 1.1.0
Is debug build: No
CUDA used to build PyTorch: 10.0
OS: Mac OSX 10.13.6
GCC version: Could not collect
CMake version: version 3.14.0
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GeForce GTX 1080 Ti
Nvidia driver version: 1.1.0
cuDNN version: Probably one of the following:
/usr/local/cuda/lib/libcudnn.7.dylib
/usr/local/cuda/lib/libcudnn_static.a
Versions of relevant libraries:
[pip3] numpy==1.16.4
[conda] blas 1.0 mkl
[conda] gpytorch 0.3.5 pypi_0 pypi
[conda] mkl 2019.4 233
[conda] mkl-include 2019.4 233
[conda] mkl-service 2.3.0 py36hfbe908c_0
[conda] mkl_fft 1.0.14 py36h5e564d8_0
[conda] mkl_random 1.1.0 py36ha771720_0
[conda] torch 1.1.0 pypi_0 pypi
[conda] torchfile 0.1.0 pypi_0 pypi
[conda] torchnet 0.0.4 pypi_0 pypi
[conda] torchtext 0.4.0 pypi_0 pypi
[conda] torchvision 0.4.0a0+d31eafa pypi_0 pypi
The text was updated successfully, but these errors were encountered: