CCMpred icon indicating copy to clipboard operation
CCMpred copied to clipboard

Compiling with CUDA

Open huhlim opened this issue 7 years ago • 7 comments

I'm using a CUDA 9.2, and the nvcc did not support -arch=sm_20 option. I simply fixed the issue by replacing sm_20 to sm_70 in CMakeLists.txt file.

huhlim avatar Dec 28 '18 19:12 huhlim

With -arch=sm_70, I could compile it, but the compiled version failed to run on GTX980Ti. By using -arch=sm_50, I succeeded to run it.

huhlim avatar Dec 28 '18 19:12 huhlim

Thanks for reporting the problem @huhlim. Unfortunately, I do not have any cuda experience nor a graphics card so I cannot help maintaining the cuda support.

I will leave your issue open as your fix may help others struggling with cuda.

croth1 avatar Jan 01 '19 14:01 croth1

Thanks for leaving this up! This fix also worked for me.

rmrao avatar Jun 02 '19 20:06 rmrao

Hello, I've done the same but then I got the following error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61:15: fatal error: 'string.h' file not found

does anyone know how to fix it?

bognabognabogna avatar Sep 26 '19 10:09 bognabognabogna

@bognabognabogna I think it is a completely different issue with your MacOS environment. Please check this out. https://stackoverflow.com/questions/26185978/macos-wchar-h-file-not-found

huhlim avatar Sep 27 '19 15:09 huhlim

Hi all, please check out #20 to see if you can get this running on your machine with CUDA now.

sseemayer avatar Oct 12 '19 09:10 sseemayer

Since this issue is still open - just noting that this does work on latest CUDA versions now. Thanks for the fix!

rmrao avatar Oct 14 '22 14:10 rmrao