soedinglab / CCMpred

Protein Residue-Residue Contacts from Correlated Mutations predicted quickly and accurately.
http://www.ncbi.nlm.nih.gov/pubmed/25064567
GNU Affero General Public License v3.0
107 stars 25 forks source link

Cuda compilation problem #9

Open rakeshr10 opened 7 years ago

rakeshr10 commented 7 years ago

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 commented 7 years ago

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

alsalas commented 7 years ago

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

croth1 commented 7 years ago

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.

grubermar commented 7 years ago

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

sseemayer commented 7 years ago

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

UltraHector commented 6 years ago

Working use: cmake/3.5.0 cuda/6.0.37

sseemayer commented 4 years ago

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