Git Product home page Git Product logo

Comments (5)

yuhuan-wu avatar yuhuan-wu commented on June 18, 2024

Yes, this error is usually caused by an incompatible CUDA version.
As default, this repo uses system CUDA library to compile the cuda source code. So you need to prepare a same version CUDA library.

from rdpnet.

manongXT avatar manongXT commented on June 18, 2024

But I use the CUDA10.2 Library of the system to run setup.py, but I can't compile it. Do I have to call the CUDA Library of the system back to 9.0?

from rdpnet.

yuhuan-wu avatar yuhuan-wu commented on June 18, 2024

But I use the CUDA10.2 Library of the system to run setup.py, but I can't compile it. Do I have to call the CUDA Library of the system back to 9.0?

Yes. This issue is normal and can be classified to the incompatible version error.
I recommend to use my default env "pytorch==1.1 torchvision==0.2.2 cudatoolkit=9.0" and make sure the version of the CUDA library (used to compile) is CUDA9.0.

After installing CUDA9.0, you can consider to use my command to conveniently activate CUDA9.0

### Write the following code to ~/.bashrc. Use `source ~/.bashrc` to activate it
alias cu102='sudo rm /usr/local/cuda; sudo ln -s /usr/local/cuda-10.2 /usr/local/cuda; echo enable cuda10.2!; nvcc -V'
alias cu101='sudo rm /usr/local/cuda; sudo ln -s /usr/local/cuda-10.1 /usr/local/cuda; echo enable cuda10.1!; nvcc -V'
alias cu92='sudo rm /usr/local/cuda; sudo ln -s /usr/local/cuda-9.2 /usr/local/cuda; echo enable cuda9.2!; nvcc -V'
alias cu90='sudo rm /usr/local/cuda; sudo ln -s /usr/local/cuda-9.0 /usr/local/cuda; echo enable cuda9.0!; nvcc -V'

### Use the following code in the terminal to activate CUDA9.0
cu90

Hope this answer will help you a lot.

from rdpnet.

yuhuan-wu avatar yuhuan-wu commented on June 18, 2024

If you have further questions, feel free to add my wechat "wyh-hys" with your current university and current position~

from rdpnet.

manongXT avatar manongXT commented on June 18, 2024

OK, thank you for your answer.

from rdpnet.

Related Issues (5)

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.