I installed CUDA 9.2, cudnn 7.1 for CUDA 9.2, and nccl for CUDA 9.2.
I got pytorch source code from github, build was successful. (commit efba555a389100d391764678e953dcaae227dd43)
But, when I tried to import torch, I got the error as follows:
python -c "import torch"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/polphit/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 78, in <module>
from torch._C import *
ImportError: libcurand.so.9.0: cannot open shared object file: No such file or directory
Oh, I found it was due to caffe2 that I installed several months ago.
I don’t know the sequence of import, but I guess _C.cpython-36m-x86_64-linux-gnu.so tries to load libcaffe2_gpu.so if caffe2 is installed.
hi! I install it from conda, and I encounter the same issue. I used to install caffe2 from source, but now I have uninstalled it.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 80, in <module>
from torch._C import *
ImportError: libcurand.so.9.0: cannot open shared object file: No such file or directory