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

Fix auto-detecting GPU architectures #7593

Conversation

trxcllnt
Copy link
Contributor

@trxcllnt trxcllnt commented Mar 13, 2021

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 calling enable_language(CUDA), this call throws an error and configuration fails. This change ensures we call enable_language(CUDA) after any potential rewrites of CMAKE_CUDA_ARCHITECTURES.

This PR also aligns with RMM's EvalGPUArchs.cmake logic and prints SUPPORTED_CUDA_ARCHITECTURES instead of "ALL" in the case the current machine is a CPU-only node.

Related: rapidsai/rmm#727

…_ARCHITECTURES, fix auto-detecting GPU architecture
@trxcllnt trxcllnt requested a review from a team as a code owner March 13, 2021 16:36
@trxcllnt trxcllnt requested a review from robertmaynard March 13, 2021 16:36
@github-actions github-actions bot added CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. labels Mar 13, 2021
@trxcllnt 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
Copy link

codecov bot commented Mar 13, 2021

Codecov Report

Merging #7593 (f948efa) into branch-0.19 (396f741) will increase coverage by 0.40%.
The diff coverage is n/a.

Impacted file tree graph

@@               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     
Impacted Files Coverage Δ
python/cudf/cudf/core/abc.py 87.23% <0.00%> (-1.14%) ⬇️
python/cudf/cudf/io/feather.py 100.00% <0.00%> (ø)
python/cudf/cudf/comm/serialize.py 0.00% <0.00%> (ø)
python/cudf/cudf/_fuzz_testing/io.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/struct.py 100.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/_version.py 0.00% <0.00%> (ø)
python/cudf/cudf/_fuzz_testing/fuzzer.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/hash_vocab_utils.py 100.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/io/tests/test_csv.py 100.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/io/tests/test_orc.py 100.00% <0.00%> (ø)
... and 39 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 396f741...f948efa. Read the comment docs.

@kkraus14
Copy link
Collaborator

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 05bb2f0 into rapidsai:branch-0.19 Mar 15, 2021
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants