Problems installing SofaCUDA: Errors in files CudaSort and CudaScan #4563
-
Hello Everyone, I want to explore the possbilities to try the new version of sofa with SOFACUDA plugin. I have problem in the installation, in particular, on this two files CudaSort and Cudascan. The compilation error is the following: [ 93%] Building NVCC (Device) object applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/SofaCUDA_generated_CudaSort.cu.o
[ 93%] Building NVCC (Device) object applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/SofaCUDA_generated_CudaScan.cu.o
[ 93%] Built target SofaMatrix
[ 96%] Built target image_gui
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’
CMake Error at SofaCUDA_generated_CudaScan.cu.o.Release.cmake:276 (message):
Error generating file
/home/pasquale/sofa/build/applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/./SofaCUDA_generated_CudaScan.cu.o
make[2]: *** [applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/build.make:1464: applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/SofaCUDA_generated_CudaScan.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’
CMake Error at SofaCUDA_generated_CudaSort.cu.o.Release.cmake:276 (message):
Error generating file
/home/pasquale/sofa/build/applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/./SofaCUDA_generated_CudaSort.cu.o
make[2]: *** [applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/build.make:2370: applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/SofaCUDA_generated_CudaSort.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:17128: applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/all] Error 2
make: *** [Makefile:156: all] Error 2 I don´t know if it is linked to the fact the maybe doesn´t recognise my Nvidia graphic card. How should I proceed? Many thanks in advance. I will tag @alxbilger , because I know is the expert and author of the plugin. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello @Emanuele-n , |
Beta Was this translation helpful? Give feedback.
Hello,
I found the solution. Sorry to create maybe a useless topic.
There was a mismatch between my CUDA version and the compiler.
CUDA 11 supports until gcc-10 and g++10.
Now the plugin is compiled.
Many thanks anyway.
Maybe could be useful for someone that had the same issue.