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

Refactor ConfigureCUDA to not conditionally insert compiler flags #7643

Conversation

robertmaynard
Copy link
Contributor

Changing the state of BUILD_TESTING or BUILD_BENCHMARKS now doesn't cause a recompilation of all cudf source files.

Changing the state of `BUILD_TESTING` or `BUILD_BENCHMARKS` now
doesn't cause a recompilation of all cudf source files.
@robertmaynard robertmaynard requested a review from a team as a code owner March 18, 2021 20:42
@github-actions github-actions bot added CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. labels Mar 18, 2021
@codecov
Copy link

codecov bot commented Mar 19, 2021

Codecov Report

Merging #7643 (087cc21) into branch-0.19 (7871e7a) will increase coverage by 0.60%.
The diff coverage is 93.33%.

❗ Current head 087cc21 differs from pull request most recent head bd394e1. Consider uploading reports for the commit bd394e1 to get more accurate results
Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.19    #7643      +/-   ##
===============================================
+ Coverage        81.86%   82.47%   +0.60%     
===============================================
  Files              101      101              
  Lines            16884    17394     +510     
===============================================
+ Hits             13822    14345     +523     
+ Misses            3062     3049      -13     
Impacted Files Coverage Δ
python/cudf/cudf/core/index.py 93.45% <ø> (+0.59%) ⬆️
python/cudf/cudf/core/series.py 91.69% <ø> (+0.90%) ⬆️
python/cudf/cudf/core/tools/datetimes.py 84.53% <ø> (+0.08%) ⬆️
python/cudf/cudf/utils/cudautils.py 52.94% <ø> (+2.55%) ⬆️
python/cudf/cudf/utils/dtypes.py 89.88% <ø> (+0.37%) ⬆️
python/dask_cudf/dask_cudf/io/orc.py 91.04% <ø> (+0.13%) ⬆️
python/cudf/cudf/core/column/numerical.py 94.83% <87.50%> (-0.20%) ⬇️
python/cudf/cudf/core/column/column.py 87.86% <90.00%> (+0.10%) ⬆️
python/cudf/cudf/core/column/decimal.py 92.75% <90.32%> (-2.12%) ⬇️
python/cudf/cudf/core/frame.py 89.23% <91.83%> (+0.21%) ⬆️
... and 61 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 3349764...bd394e1. Read the comment docs.

@robertmaynard robertmaynard changed the title [WIP] Refactor ConfigureCUDA to not conditionally insert compiler flags Refactor ConfigureCUDA to not conditionally insert compiler flags Mar 19, 2021
@@ -29,10 +29,6 @@ enable_language(CUDA)

if(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND CUDF_CXX_FLAGS -Wall -Werror -Wno-unknown-pragmas -Wno-error=deprecated-declarations)
if(CUDF_BUILD_TESTS OR CUDF_BUILD_BENCHMARKS)
# Suppress parentheses warning which causes gmock to fail
list(APPEND CUDF_CUDA_FLAGS -Xcompiler=-Wno-parentheses)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this no-parentheses warning no longer an issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested locally with a CPM'd gmock/gtest and had no build failures ( CUDA 11.1 ).

@harrism harrism added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 23, 2021
@harrism
Copy link
Member

harrism commented Mar 24, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 0c36ca9 into rapidsai:branch-0.19 Mar 24, 2021
@robertmaynard robertmaynard deleted the fix/dont_change_build_options_when_gmock_enabled branch March 25, 2021 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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