-
Notifications
You must be signed in to change notification settings - Fork 915
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 auto-detecting GPU architectures #7593
Merged
rapids-bot
merged 3 commits into
rapidsai:branch-0.19
from
trxcllnt:fix/cmake-enable-cuda-after-detecting-gpu-archs
Mar 15, 2021
Merged
Fix auto-detecting GPU architectures #7593
rapids-bot
merged 3 commits into
rapidsai:branch-0.19
from
trxcllnt:fix/cmake-enable-cuda-after-detecting-gpu-archs
Mar 15, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…_ARCHITECTURES, fix auto-detecting GPU architecture
github-actions
bot
added
CMake
CMake build issue
libcudf
Affects libcudf (C++/CUDA) code.
labels
Mar 13, 2021
trxcllnt
added
3 - Ready for Review
Ready for review by team
improvement
Improvement / enhancement to an existing function
non-breaking
Non-breaking change
labels
Mar 13, 2021
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7593 +/- ##
===============================================
+ Coverage 81.98% 82.38% +0.40%
===============================================
Files 101 101
Lines 16989 17350 +361
===============================================
+ Hits 13928 14294 +366
+ Misses 3061 3056 -5
Continue to review full report at Codecov.
|
kkraus14
reviewed
Mar 14, 2021
kkraus14
approved these changes
Mar 15, 2021
@gpucibot merge |
rapids-bot bot
pushed a commit
that referenced
this pull request
Mar 16, 2021
After #7593 the variables for controlling the CUDA build for either all architectures or detected architectures changed to be based on the project name which broke the JNI build. This updates the JNI CMakeList accordingly to fix the JNI build. Authors: - Jason Lowe (@jlowe) Approvers: - Rong Ou (@rongou) - Gera Shegalov (@gerashegalov) - Thomas Graves (@tgravescs) URL: #7612
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3 - Ready for Review
Ready for review by team
CMake
CMake build issue
improvement
Improvement / enhancement to an existing function
libcudf
Affects libcudf (C++/CUDA) code.
non-breaking
Non-breaking change
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes regression from #7579 in auto-detecting GPU architectures when
-DCMAKE_CUDA_ARCHITECTURES=
is passed on the CLI.Now that the cached
CMAKE_CUDA_ARCHITECTURES
isn't unset before callingenable_language(CUDA)
, this call throws an error and configuration fails. This change ensures we callenable_language(CUDA)
after any potential rewrites ofCMAKE_CUDA_ARCHITECTURES
.This PR also aligns with RMM's
EvalGPUArchs.cmake
logic and printsSUPPORTED_CUDA_ARCHITECTURES
instead of"ALL"
in the case the current machine is a CPU-only node.Related: rapidsai/rmm#727