Coder Social home page Coder Social logo

Incompatibility with CUDA 11 about gpunufft HOT 10 OPEN

samr96 avatar samr96 commented on September 15, 2024 1
Incompatibility with CUDA 11

from gpunufft.

Comments (10)

curtcorum avatar curtcorum commented on September 15, 2024 2

Hello All,

Did not see this post before updating to cuda-toolkit-11.4
I am seeing very much similar behavior to the above....this is just a grid once as a code test...
OS = 1.25, KW = 2.5 using same dcf

It seems like rolling back to cuda-10-2 is the current solution. If anybody working on this I can provide more details, or please share any update you may have found!

thanks!

Curt

simulated 3d radial (same) datasets 256x256x256 65536 views
preview_cuda-10-2 preview_cuda-11-4
cuda 10.2 .................................................... cuda 11.4

from gpunufft.

andyschwarzl avatar andyschwarzl commented on September 15, 2024

Thanks for the info. I will have a look on it.

from gpunufft.

emilljungberg avatar emilljungberg commented on September 15, 2024

Hi,

I just tried to compile the code on Ubuntu 18.04 with CUDA 11.2 and getting some errors in the compilation step. @samr96 what changes did you make to get it to compile?

from gpunufft.

samr96 avatar samr96 commented on September 15, 2024

Hi Emil @emilljungberg,

I just installed CUDA 10.2 and compiled with that, then everything worked. I think you can have multiple versions of CUDA installed on your machine.

Though there might be a way to make it work with CUDA 11 on Ubuntu, because it was the Win10 Visual Studio 13 dependency that made things go wrong for me. If you really want to use CUDA 11, you could try removing the GPU architectures which have been deprecated in CUDA 11 from the CMakeLists.txt file (so sm_30). Good luck!

from gpunufft.

RichardUVA avatar RichardUVA commented on September 15, 2024

Hi @emilljungberg @samr96
Could you provide some details about the package versions in Linux? for example, the GCC version? I tried to modify sm_20 into sm_60 for cuda 10, but it still didn't work. The error massage showed the C++ code error.

Thanks,
Junyu

from gpunufft.

valeryozenne avatar valeryozenne commented on September 15, 2024

Hi everybody,

I have a similar behavior of the gpuNUFFT toolbox. If someone as a fix , do hesitate to answer to this post. Both cudatoolkit were installed and I modified the bashrc to link to the desired cuda version.


The code was running on Ubuntu 20.04
with gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0 for the compilation
and Matlab R2020b for testing the code

the line to be removed in theCMake for the compilation is below:

-  set(MY_NVCC_FLAGS -arch=sm_30 -gencode arch=compute_30,code=sm_30)

using cuda 10.2
Capture d’écran de 2021-04-12 15-30-15

using cuda 11.2
Capture d’écran de 2021-04-12 15-26-49

Thanks in advance,

Best,
Valéry

from gpunufft.

curtcorum avatar curtcorum commented on September 15, 2024

obj.switches.atomic = true; %obj.switches.atomic = true;
obj.switches.textures = true; %obj.switches.textures = true;
obj.switches.balanced = true; %obj.switches.balanced = true;
obj.switches.gpu_sw = 8; %sw -- sector width to use

FT_i = gpuNUFFT( kspace_i', dcf_d.^2, OS, KW, gpu_sw, imageDims, [], atomic, textures, balanced);

obj.kspCart(:, :, :, i_dynamic, i_channel) = kR_norm * (FT_i' * fid_i);

from gpunufft.

curtcorum avatar curtcorum commented on September 15, 2024

And back to cuda-10-2
preview

from gpunufft.

andyschwarzl avatar andyschwarzl commented on September 15, 2024

Sorry for my late response. As I'm currently not having access to a CUDA 11 capable card it's hard for me to fix it.

I hope someone finds a fix - PR welcome!

Best regards,

Andy

from gpunufft.

khammernik avatar khammernik commented on September 15, 2024

The issue unfortunately still persists with cuda 11.5 and 11.6. For me, it works until cuda 11.1.

from gpunufft.

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.