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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with CUDA SDK 10.2 #792

Closed
paskino opened this issue Jan 24, 2020 · 3 comments
Closed

Build error with CUDA SDK 10.2 #792

paskino opened this issue Jan 24, 2020 · 3 comments

Comments

@paskino
Copy link
Contributor

paskino commented Jan 24, 2020

I'm building with Ubuntu 18.04 and CUDA-10.2

I stumble upon this linking problem:

[ 48%] Linking CXX executable nffth_2d_radial
cd /home/ofn77899/devel/buildVM/builds/Gadgetron/build/apps/standalone/gpu/mri/nfft/2d && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/nffth_2d_radial.dir/link.txt --verbose=1
/usr/bin/c++   -fopenmp -Werror=return-type -Werror=terminate -O3 -DNDEBUG  -rdynamic CMakeFiles/nffth_2d_radial.dir/main_nffth.cpp.o  -o nffth_2d_radial  -L/home/ofn77899/devel/install/lib -Wl,-rpath,/home/ofn77899/devel/install/lib:/home/ofn77899/devel/buildVM/builds/Gadgetron/build/toolboxes/operators/gpu:/home/ofn77899/devel/buildVM/builds/Gadgetron/build/toolboxes/nfft/gpu:/home/ofn77899/devel/buildVM/builds/Gadgetron/build/toolboxes/core/cpu/hostutils:/usr/local/cuda/lib64:/home/ofn77899/devel/buildVM/builds/Gadgetron/build/toolboxes/fft/gpu:/home/ofn77899/devel/buildVM/builds/Gadgetron/build/toolboxes/core/gpu:/home/ofn77899/devel/buildVM/builds/Gadgetron/build/toolboxes/core/cpu:/home/ofn77899/devel/buildVM/builds/Gadgetron/build/toolboxes/log: ../../../../../../toolboxes/operators/gpu/libgadgetron_toolbox_gpuoperators.so.3.17.0 ../../../../../../toolboxes/nfft/gpu/libgadgetron_toolbox_gpunfft.so.3.17.0 ../../../../../../toolboxes/core/cpu/hostutils/libgadgetron_toolbox_hostutils.so.3.17.0 /usr/local/cuda/lib64/libcudart.so ../../../../../../toolboxes/fft/gpu/libgadgetron_toolbox_gpufft.so.3.17.0 ../../../../../../toolboxes/core/gpu/libgadgetron_toolbox_gpucore.so.3.17.0 /usr/local/cuda/lib64/libcusparse.so ../../../../../../toolboxes/core/cpu/libgadgetron_toolbox_cpucore.so.3.17.0 /usr/local/cuda/lib64/libcufft.so /usr/local/cuda/lib64/libcudart.so -lcublas ../../../../../../toolboxes/log/libgadgetron_toolbox_log.so.3.17.0 -lboost_system -lboost_thread -lboost_program_options -lboost_filesystem -lboost_timer -lboost_chrono -lboost_date_time -lboost_atomic
../../../../../../toolboxes/nfft/gpu/libgadgetron_toolbox_gpunfft.so.3.17.0: undefined reference to `cusparseCopyMatDescr'
collect2: error: ld returned 1 exit status
apps/standalone/gpu/mri/nfft/2d/CMakeFiles/nffth_2d_radial.dir/build.make:103: recipe for target 'apps/standalone/gpu/mri/nfft/2d/nffth_2d_radial' failed
make[6]: *** [apps/standalone/gpu/mri/nfft/2d/nffth_2d_radial] Error 1
make[6]: Leaving directory '/home/ofn77899/devel/buildVM/builds/Gadgetron/build'
CMakeFiles/Makefile2:3249: recipe for target 'apps/standalone/gpu/mri/nfft/2d/CMakeFiles/nffth_2d_radial.dir/all' failed

Downgrading to 10.1 does the trick. Apparently they removed cusparseCopyMatDescr from 10.2?

@dchansen
Copy link
Contributor

This has been fixed in hte latest master (with cuda 11).

@paskino
Copy link
Contributor Author

paskino commented Feb 26, 2021

I will just add that 10.1 update 1 works but update 2 doesn't.

@dchansen
Copy link
Contributor

CUDA 11 is the only supported version at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants