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

Cuda compilation problem #9

Open
rakeshr10 opened this issue Jun 17, 2017 · 7 comments
Open

Cuda compilation problem #9

rakeshr10 opened this issue Jun 17, 2017 · 7 comments
Labels

Comments

@rakeshr10
Copy link

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
Copy link
Author

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
Copy link

alsalas commented Jul 10, 2017

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
Copy link

croth1 commented Jul 10, 2017

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
Copy link
Contributor

grubermar commented Jul 11, 2017

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
Copy link
Contributor

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
Copy link

Working use:
cmake/3.5.0
cuda/6.0.37

@croth1 croth1 added the cuda label Jan 1, 2019
@sseemayer
Copy link
Contributor

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

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

No branches or pull requests

6 participants