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 versions #35

Closed
PhilippaHartley opened this issue Mar 31, 2021 · 2 comments
Closed

CUDA versions #35

PhilippaHartley opened this issue Mar 31, 2021 · 2 comments

Comments

@PhilippaHartley
Copy link

Hi,

I'm having a bit of trouble installing with GPU support: I've got CUDA 11.2 installed and it looks like that newest CUDA version supported is 8.2 - so I have installed CUDA 8.0 and then used the -DCUDA_ARCH="8.0" flag, but unfortunately then get nvcc fatal : Unsupported gpu architecture 'compute_80' when I run make. I wonder if I need CUDA>8.2 for the GPU but <=8.2 for OSKAR?

I'm on a Ubuntu 18.04 machine and have a Tesla V100. I'll do a bit more digging but wondered if I'm missing something obvious with versions etc.

Many thanks!

@fdulwich
Copy link
Contributor

I think you may be confusing the version of the CUDA toolkit with the CUDA compute architecture version, which are different.

You should be able to use a recent version of the CUDA toolkit such as 11.2 (or 10.x) on Ubuntu 18.04. More recent versions of the toolkit support newer devices, so at compilation time, you can specify -DCUDA_ARCH=7.0 to target the V100 if the toolkit supports it. (CUDA toolkit 8.0 was released in September 2016, and the V100 was announced in 2018, so you're seeing the error because that version of the toolkit doesn't know about the requested GPU architecture.)

@PhilippaHartley
Copy link
Author

Thanks Fred - I got it working by making a soft link 'cuda' to the cuda-11.2/ toolkit directory and then specifiying -DCUDA_ARCH=7.0 as suggested.

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

No branches or pull requests

2 participants