question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation issue: undefined symbol: __cudaPopCallConfiguration

See original GitHub issue

On 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
davidbaucommented, Dec 24, 2018

Thanks for the tip! The system has multiple nvcc and even though the version on the PATH matched torch.version.cuda, it looks like setup.py was picking up the wrong one. It looks like the torch extension API is looking for CUDA_HOME. So doing this before pip install or python setup.py install fixes the problem (it’s not necessary for the right nvcc to show up on PATH or for the right include to be on CPATH - everything is keyed off of CUDA_HOME):

export CUDA_HOME=/usr/local/cuda-9.0

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:

pip uninstall torch-scatter
rm -rf build torch_scatter/*.so; python setup.py clean # within the torch_scatter sources

And then use --no-cache-dir when reinstalling with the proper environment variable.

export CUDA_HOME=/usr/local/cuda-9.0
pip install --no-cache-dir torch-scatter

Problem solved!

3reactions
rusty1scommented, Dec 24, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found