GithubHelp home page GithubHelp logo

Comments (13)

cattaneod avatar cattaneod commented on August 24, 2024

Are you sure that you are using CUDA 11.1? From the error it seems that CUDA is older than 11.
can you try to run:
/usr/local/cuda/bin/nvcc --version
and paste the output?

from cmrnet.

cattaneod avatar cattaneod commented on August 24, 2024

Can you try only with arch=compute_80, code=sm_80, without the second argument arch=compute_80, code=compute_80

from cmrnet.

WJ1214 avatar WJ1214 commented on August 24, 2024

Are you sure that you are using CUDA 11.1? From the error it seems that CUDA is older than 11. can you try to run: /usr/local/cuda/bin/nvcc --version and paste the output?

Thank you, I may know the reason why.

from cmrnet.

WJ1214 avatar WJ1214 commented on August 24, 2024

Can you try only with arch=compute_80, code=sm_80, without the second argument arch=compute_80, code=compute_80

Let me try to change the CUDA version and nvcc_args, I will give you a result.

from cmrnet.

WJ1214 avatar WJ1214 commented on August 24, 2024

Can you try only with arch=compute_80, code=sm_80, without the second argument arch=compute_80, code=compute_80

Hi! Now I can build project successfully, but I get another problem... It returns this error when I try to run train model script:
image
It's weird...

from cmrnet.

cattaneod avatar cattaneod commented on August 24, 2024

Now the error is probably that you have installed pytorch with a different version of cuda than the one that you used to compile the packages.

I suggest that you create a new python environment (e.g. conda environment), install pytorch with the correct cuda version that you will use to compile the packages, and finally, before running python setup.py install, remove the build folder with rm -rf build

from cmrnet.

WJ1214 avatar WJ1214 commented on August 24, 2024

OK, I will try it. Thank you!

from cmrnet.

cattaneod avatar cattaneod commented on August 24, 2024

And, as mentioned in #4, can you modify the file models/CMRNet/correlation_package/correlation.py and invert the first two lines?

from cmrnet.

WJ1214 avatar WJ1214 commented on August 24, 2024

And, as mentioned in #4, can you modify the file models/CMRNet/correlation_package/correlation.py and invert the first two lines?

You mean that I need to import torch first and then import correlation_cuda in correlation.py?

from cmrnet.

cattaneod avatar cattaneod commented on August 24, 2024

You mean that I need to import torch first and then import correlation_cuda in correlation.py?

Yes, exactly

from cmrnet.

WJ1214 avatar WJ1214 commented on August 24, 2024

You mean that I need to import torch first and then import correlation_cuda in correlation.py?

Yes, exactly

OKay...I will try it

from cmrnet.

WJ1214 avatar WJ1214 commented on August 24, 2024

It worked! Thank you very much!

from cmrnet.

cattaneod avatar cattaneod commented on August 24, 2024

Thank you for your feedback, I updated the code to run on newer versions of pytorch and with cuda 11.x

from cmrnet.

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.