-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support for CUDA 11 #2
Comments
@hkashyap I tried adding " |
I have put the || defined(CUDA11) in the cuda_version_control.h file and ran cmake but I keep getting a nvcc fatal : Unsupported gpu architecture 'compute_30' when I run make. |
@ame68 unless I am mistaken compute_30 is set to be depreciated or may already be depreciated on newer Nvidia graphics cards or newer CUDA versions. One may need to remove all mentions of compute_30 and correspondingly sm_30 from the make code for certain graphics cards/CUDA versions. This may also be the same for compute_35 and compute_37. Another point is that running the code at the highest compute_xx level that matches what your GPU can support may possibly provide better performance but I am not sure if this is true. I would be interested to find if you end up getting CARLsim5 to run with CUDA 11 once you make the changes. |
Thanks for the help my code is compiling and working with CUDA 11.1 now. |
@ame68 glad to hear that. Could you please share, what GPU and OS (including version) do you use for anyone's reference in case it can be helpful? Btw, since the current CUDA version is 11.6, did you find that 11.1 works in particular as compared to the newest version or you have not tried the newest CUDA version with CS5? |
Sure, the GPU is an Nvidia GeForce RTX 2060 and the OS is Ubuntu 20.04.4 LTS. CUDA 11.1 is the version I currently have on my system, I have not tried CS5 with any others since I upgraded from CUDA 10.2. |
Thanks for the info. If someone were to write a way to auto detect compute_xx needed for GPUs or at least make a way for users to easily understand how to configure this in compile options as well as put the info in the main branch readme file I would close this issue. However, such things may end up waiting until they are addressed in CARLsim6, then they can be backported to CARLsim5 or earlier versions. |
Add support for CUDA 11 here:
CARLsim5/carlsim/kernel/inc/cuda_version_control.h
Line 59 in 9ae8b65
The text was updated successfully, but these errors were encountered: