25 July 2018 at 2 h 18 min #11505
I am a beginner at SOFA.
I have built SOFA v18.06 using VS 2017 and cuda_9.2.148_win10.
My graphics card is NVIDIA GeForce GTX 1080.
Then only cmpiling CUDA plugin has failed even though other parts has been successful.
Error message are as follows :
1>Building NVCC (Device) object applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/Debug/SofaCUDA_generated_CudaBarycentricMapping.cu.obj 1>nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified 1>CMake Error at SofaCUDA_generated_CudaBarycentricMapping.cu.obj.Debug.cmake:215 (message): 1> Error generating 1> D:/Work/SOFA/Code/CodeOnDev/SOFAWork/applications/plugins/SofaCUDA/CMakeFiles/SofaCUDA.dir/sofa/gpu/cuda/Debug/SofaCUDA_generated_CudaBarycentricMapping.cu.obj 1> 1> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe” exited with code 1.
I don’t know what is wrong.
How can I build it?
Suwan26 July 2018 at 14 h 12 min #11534
I am using CUDA on Linux, and I never experienced such an error of nvcc with the SofaCUDA plugin. However, it seems that others are facing this NVCC / CMake issues:
Let me know if this helps.
Hugo1 August 2018 at 12 h 49 min #11617
I solved this case.
The reasons are as follows :
1. It happened that flags of SOFACUDA_CUBLAS and SOFACUDA_CUDPP was set.
2. The latest version of VS 2017 couldn’t build the cuda source of SOFA because of the limit of vs 2017 version defined in cuda header files.
So I have built SOFA source code by solving above two problems.
Could you let me know whether SOFA needs the functions of CUBLAS and CUDPP?
If it needs them, what modules use them?1 August 2018 at 18 h 30 min #11622
These are not useful for the open-source code of SOFA. These dependencies are required for solvers (CUBLAS) and collision detection algorithms (CUDPP) that are implemented in private plugins. In the future, these options should be moved directly into these private plugins to avoid polluting the open-source code.
Hope this answers your question.
Hugo2 August 2018 at 4 h 54 min #11627
Thank you for your kind reply.
I tried to build two options which are CUBLAS and CUDPP.
Building CUBLAS was successful.
However, doing CUDPP failed.
It need cudpp libaray and header.
So I have built cudpp version 2.3 and added to SOFA.
Then CudaScan.cu made an error because of missing of cudpp_plan_manager.h.
I found it in cudpp version 1.1.1, but that version was so old.
I want to know what version of cudpp is used for SOFA.
Could you give me any tip about this case?
Suwan2 August 2018 at 9 h 15 min #11628
I have successfully built SOFACUDA with CUDPP.
I built cudpp version 2.3 and used it for building SOFA CUDA.
And I modified some SOFA CUDA code because of changes between old and new version of cudpp functions.
Suwan2 August 2018 at 11 h 37 min #11632
You must be logged in to reply to this topic.