Giter VIP home page Giter VIP logo

Comments (8)

rusty1s avatar rusty1s commented on May 18, 2024 1

If your CUDA version is 10.0 and you use PyTorch 1.5, you may need to install from source using pip install torch-sparse command. We provide 9.2, 10.1 and 10.2 wheels for PyTorch 1.5, and 9.2, 10.0 and 10.1 wheels for PyTorch 1.4. The easier way is to just upgrade your CUDA though.

from pytorch_sparse.

rusty1s avatar rusty1s commented on May 18, 2024 1

You may need to add the lib directory of miniconda to LD_LIBRARY_PATH. This directory should contain libcusparse.so.10.

from pytorch_sparse.

rusty1s avatar rusty1s commented on May 18, 2024

Hi, can you follow this guide and see if that fixes your issue? Editing LD_LIBRARY_PATH may be crucial here.

from pytorch_sparse.

veophi avatar veophi commented on May 18, 2024

This issue was solved !
It caused by my conda virtual env .
I used /usr/lobal/cuda to compiler the torch-sparse .
However , my codes depend on the virtual env when it runs . . .
So I just moved the libcusparse.so.10.0 files from /usr/lobal/cuda/lib64 to my virtual env , then it was solved!
Thanks so much !! !

from pytorch_sparse.

roholazandie avatar roholazandie commented on May 18, 2024

I run into the same problem. My Cuda version is 10.0. Is there any way that I could install it with this version or should I upgrade?

from pytorch_sparse.

roholazandie avatar roholazandie commented on May 18, 2024

If your CUDA version is 10.0 and you use PyTorch 1.5, you may need to install from source using pip install torch-sparse command. We provide 9.2, 10.1 and 10.2 wheels for PyTorch 1.5, and 9.2, 10.0 and 10.1 wheels for PyTorch 1.4. The easier way is to just upgrade your CUDA though.

Yes, I upgraded my cuda version and that saved me a lot of time playing around with library versions

from pytorch_sparse.

bsaberla avatar bsaberla commented on May 18, 2024

This issue was solved !
It caused by my conda virtual env .
I used /usr/lobal/cuda to compiler the torch-sparse .
However , my codes depend on the virtual env when it runs . . .
So I just moved the libcusparse.so.10.0 files from /usr/lobal/cuda/lib64 to my virtual env , then it was solved!
Thanks so much !! !

I am using virtual environment too. But there is not any cuda directory in local directory. my torch cuda version however is 10.1. How can I fix this?

from pytorch_sparse.

mayurmallya avatar mayurmallya commented on May 18, 2024

Appending $CUDA_PATH/lib64 (which has libcusparse.so.10.0) to $LD_LIBRARY_PATH helped me resolve this issue.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_PATH/lib64

from pytorch_sparse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.