-
Notifications
You must be signed in to change notification settings - Fork 5
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
BUG: Resolve CUDA warnings on Linux #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it works then this all seems reasonable to me. I would use more indentation so that it is clear when one is in a "then" or else
clause, using multiple indentations for nested clauses.
Good suggestion, I will fix styling before merge |
Probably an issue with my local configuration, but just in case it is not ... when I set
|
Thanks @Leengit , I have not been able to reproduce directly on my local Linux machine but I do see the same issue with gcc when I try to build Python CUDA wheels, which is the next step after this. How do you set whether to use In my experimental fork of |
I use If it is the use of If it is with use of |
Excellent, that's probably what I am missing. I will give it a shot. Thanks.
Yes, exactly. In my VkFFT fork linked above I have explicitly added a couple of |
Hm, no luck with explicitly setting the compiler to
EDIT: Note that setting the compiler to |
If you are finding cuda and thread headers then you are having better luck than I! Maybe the CMAKE file needs to be told where to find (or install?) the CUDA libraries; perhaps something vaguely similar to what is done for OpenCL in the top-level Alternatively, the cmake variables are already properly set up and the issue is that the libraries were installed in one GitHub environment but are trying to be accessed in another environment ... though maybe that is unlikely given that we are already finding the headers. |
As we look closer at adding ITKVkFFTBackend as an ITK remote module in InsightSoftwareConsortium/ITK#3363 I would like to go ahead and merge these changes with the reasoning that some success with building on Linux is better than no success. I will add an issue to track remaining issues regarding 1) finding the Threads library and 2) building module wheels to link against + package with CUDA libraries. |
Resolve CUDA warnings when building with Ninja on Linux. Verified CUDA build succeeds on Linux platform with these changes.