-
Notifications
You must be signed in to change notification settings - Fork 407
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
Fix building with NVCC as the CXX compiler while the CUDA backend is not enabled #5115
Fix building with NVCC as the CXX compiler while the CUDA backend is not enabled #5115
Conversation
Co-Authored-By: Arno Mayrhofer <arno.mayrhofer@dcs-computing.com>
…h NVCC w/o CUDA enabled
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.
Is the guard in the TestNumericTraits.hpp really related to the issue or something that came up along the way? Do we know why it needs to be guarded?
sry, I fucked up with the brackets
First change is rather obvious, without it you get an error because the Second one we hit a known bug kokkos/core/unit_test/TestNumericTraits.hpp Lines 600 to 601 in 4e6c254
CUDA_VERSION is not defined so I opted for "unconditional" removal when using NVCC with the CUDA backend disabled
|
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.
Looks OK to me.
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.
Looks good to me
Will do |
@dalg24 I'm testing a local build with the desired config (compile with nvcc_wrapper, cuda backend disabled) to prep for the new nightly build.
Should I open an issue (and if so does this go to the kokkos repo or an external desul repo)? |
Plz add to the developer meeting agenda today. It is technically a desul issue, which detect CUDA rather than taking it as a configuration option. |
Fix #5093
@ndellingwood would you please add a nightly build with
-DCMAKE_CXX_COMPILER=<prefix>/bin/nvcc_wrapper -DKokkos_ENABLE_CUDA=OFF
?