Installation issue: undefined symbol: __cudaPopCallConfiguration
See original GitHub issueOn linux, when I try to install and use pytorch_scatter, I get undefined symbol: __cudaPopCallConfiguration
immediately upon importing torch_scatter.
Using pytorch 1.0.0 and CUDA 9.0 is on the PATH (and include is on the CPATH):
$ python -c "import torch; print(torch.__version__)"
1.0.0
$ echo $CPATH
/usr/local/cuda-9.0/include
$ echo $PATH
/usr/local/cuda-9.0/bin:/afs/csail.mit.edu/u/d/davidbau/.conda/envs/p3t1/bin...
I’ve tried uninstalling and resintalling (without cache) on pip pip install --no-cache-dir torch_scatter
, but the error remains. Any tips?
Details - ubuntu 16.04
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Environment installed via conda using the following env.yml
name: p3t1
channels:
- pytorch
dependencies:
- python=3.6
- cudatoolkit=9.0
- cudnn=7.1.2
- pytorch=1.0
- torchvision
- mkl-include
- numpy
- scipy
- scikit-learn
- matplotlib
- graphviz
- numba
- jupyter
- pyyaml
- mkl
- setuptools
- cmake
- cffi
- ujson
- tqdm
- pip
- pip:
- torch-scatter
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
undefined symbol: __cudaPopCallConfiguration
I have some error like below when I used some Pytorch layer with CUDA function: ... undefined symbol: __cudaPopCallConfiguration.
Read more >undefined reference to `__cudaPopCallConfiguration
I tried to find the installation of cuda: whereis cuda cuda: /usr/lib/cuda /usr/include/cuda.h /usr/local/cuda. I could not fix the error, ...
Read more >Installation — pytorch_geometric 1.3.2 documentation
On macOS, it may help to install clang compilers via conda (see Issue#18): ... undefined symbol: __cudaPopCallConfiguration : Ensure that your PyTorch CUDA ......
Read more >Installation issue: undefined symbol ... - CSDN博客
undefined symbol : __cudaPopCallConfiguration。 导致该问题的原因为系统cuda版本与torch编译是的cuda版本不一致python -c 'import torch; print (torch.
Read more >error (xcode): undefined symbol: __swift_force_load_$_ ...
Please help me to sort this problem. Reproducing the issue. No response. Firebase SDK Version. 9.4.0. Xcode Version. 13.0.0. Installation Method.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the tip! The system has multiple
nvcc
and even though the version on thePATH
matchedtorch.version.cuda
, it looks likesetup.py
was picking up the wrong one. It looks like the torch extension API is looking forCUDA_HOME
. So doing this beforepip install
orpython setup.py install
fixes the problem (it’s not necessary for the right nvcc to show up onPATH
or for the right include to be onCPATH
- everything is keyed off ofCUDA_HOME
):Another problem I was having while testing configurations was failing to sufficiently clean out binaries built with the wrong compiler. For others following along, I found this was enough to clean things:
And then use
--no-cache-dir
when reinstalling with the proper environment variable.Problem solved!
Does the PyTorch CUDA version
torch.version.cuda
match the one of the system?Can you make sure the official PyTorch extensions run on your machine?