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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default installation causes CUDA error in Google Colab #4095

Closed
cap-jmk opened this issue Feb 18, 2022 · 3 comments
Closed

Default installation causes CUDA error in Google Colab #4095

cap-jmk opened this issue Feb 18, 2022 · 3 comments

Comments

@cap-jmk
Copy link

cap-jmk commented Feb 18, 2022

馃樀 Describe the installation problem

When trying to install the library with

pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric

I receive the following error in Google Colab

/usr/local/lib/python3.7/dist-packages/torch_sparse/_convert_cuda.so: undefined symbol: _ZNK2at6Tensor5zero_Ev

I experienced the error before with PyTorch 1.10 on a local cluster. I was searching the issues but could not find someone with the same problem, yet. The error is known in the site package rusty1s/pytorch_sparse#180

Environment

  • PyG version: NameError: name 'torch_geometric' is not defined
  • PyTorch version: 11.1
  • OS: Ubuntu
  • Python version: 3.7
  • CUDA/cuDNN version: 1.10
  • How you installed PyTorch and PyG (conda, pip, source): pip
  • Any other relevant information (e.g., version of torch-scatter): PyG is not recognized properly as a package and CUDA bindings seem to be broken.
@rusty1s
Copy link
Member

rusty1s commented Feb 20, 2022

Can you try following the installation we utilize in our Google Colabs? See here.

@cap-jmk
Copy link
Author

cap-jmk commented Feb 21, 2022

It works, thank you. Do you know why the error occurs?

@rusty1s
Copy link
Member

rusty1s commented Feb 21, 2022

I haven't yet tried to reproduce the error but it looks like Colab only installs the CPU version of torch-sparse while it has a GPU available. Ensuring that you install from binaries rather than via manual installation fixes this.

@rusty1s rusty1s closed this as completed Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants