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

Compiling with CUDA #16

Open
huhlim opened this issue Dec 28, 2018 · 7 comments
Open

Compiling with CUDA #16

huhlim opened this issue Dec 28, 2018 · 7 comments
Labels

Comments

@huhlim
Copy link

huhlim commented Dec 28, 2018

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

huhlim commented Dec 28, 2018

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.

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

croth1 commented Jan 1, 2019

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.

@rmrao
Copy link

rmrao commented Jun 2, 2019

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

@croth1 croth1 pinned this issue Jun 3, 2019
@bognabognabogna
Copy link

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?

@huhlim
Copy link
Author

huhlim commented Sep 27, 2019

@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

@sseemayer
Copy link
Contributor

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

@rmrao
Copy link

rmrao commented Oct 14, 2022

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

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

5 participants