CCMpred icon indicating copy to clipboard operation
CCMpred copied to clipboard

Cuda compilation problem

Open rakeshr10 opened this issue 7 years ago • 8 comments

Hi, I keep getting this message when using cmake "Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS) (found version "7.5")". Kindly let me know how I can resolve this.

rakeshr10 avatar Jun 17 '17 21:06 rakeshr10

Hi, I was able to resolve the previous issue but now get the following issue. Is it because of the cuda version, I am using Cuda 7.5.

CMake Warning (dev) at conjugrad_generated_conjugrad_kernels.cu.o.cmake:81: Syntax Warning in cmake code at column 94

Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it.

nvcc fatal : Stray '"' character CMake Error at conjugrad_generated_conjugrad_kernels.cu.o.cmake:222 (message): Error generating /home/rakesh/WORK/Softwares/test/CCMpred/lib/libconjugrad/CMakeFiles/conjugrad.dir/src/./conjugrad_generated_conjugrad_kernels.cu.o

lib/libconjugrad/CMakeFiles/conjugrad.dir/build.make:63: recipe for target 'lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad_generated_conjugrad_kernels.cu.o' failed make[2]: *** [lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad_generated_conjugrad_kernels.cu.o] Error 1 CMakeFiles/Makefile2:221: recipe for target 'lib/libconjugrad/CMakeFiles/conjugrad.dir/all' failed make[1]: *** [lib/libconjugrad/CMakeFiles/conjugrad.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2

rakeshr10 avatar Jun 19 '17 22:06 rakeshr10

Dear CCPred Team, I have the same problem, I tried with CUDA7.5 and CUDA 8.0 libraries. I can compile lib/libconjugrad with cuda. But, when try in the main CCPred not works,

Thanks

alsalas avatar Jul 10 '17 03:07 alsalas

Dear @BIORAK and @alsalas, Unfortunately our contact prediction team is currently graduating or have recently graduated and so has the author of CCMpred. We are afraid that we can only offer very limited support at the moment.

croth1 avatar Jul 10 '17 12:07 croth1

Hi @BIORAK and @alsalas,

I've uploaded a small fix that should solve your compilation problems. Just be sure to call cmake with "-DCUDA_TOOLKIT_ROOT_DIR=${YOUR_CUDA_INSTALLATION}" if you have installed CUDA in a non-standard directory (e.g. /usr/local). Maybe I should also note that I've written the CUDA parts using version 5.0 back in 2013. I haven't really been up to date on CUDA since then, so I don't know what has been changed in the library up until version 8 and whether it still does exactly what it did back then :) I will check that over the next weeks, but maybe you want to switch back to CUDA version 5.0 for the time being.

EDIT: The specs I've tested the build with: gcc version: 4.8.5 cmake version: 3.8.2 CUDA version: 7.0

Best, Markus

grubermar avatar Jul 11 '17 09:07 grubermar

Hi @BIORAK @alsalas , sorry for the late response, as mentioned by @croth1 I've left the contact prediction business and have no CUDA-capable computer and limited time at the moment. I hope that #10 (many many thanks @grubermar !) will solve your problems.

Best, Stefan

sseemayer avatar Jul 11 '17 16:07 sseemayer

Working use: cmake/3.5.0 cuda/6.0.37

UltraHector avatar Mar 07 '18 07:03 UltraHector

Hi all, please check out #20 to see if you can get this running on your machine with a newer CUDA/Cmake version.

sseemayer avatar Oct 12 '19 09:10 sseemayer

This issue happens on my side with following message: -- Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS) (found version "12.6") When compiling with cmake, use the following command as above mentioned by @grubermar

cmake -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.5

This will solve the issue. -- Found CUDA: /usr/local/cuda-12.5 (found version "12.5")

But I don't know why it found version 12.6...

zyh4482 avatar Aug 23 '24 03:08 zyh4482