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

Return count of set bits from inplace_bitmask_and. #9904

Merged

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Dec 14, 2021

This PR updates the function cudf::detail::inplace_bitmask_and to return the count of set bits in the result. This change aligns inplace_bitmask_and with behavior changes introduced in #9616 to return counts of set bits (valid items in the nullmask) from functions acting on bitmasks. This will be helpful for #9621.

@bdice bdice added 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Dec 14, 2021
@bdice bdice requested a review from a team as a code owner December 14, 2021 22:13
@bdice bdice self-assigned this Dec 14, 2021
Copy link
Contributor

@robertmaynard robertmaynard left a comment

Choose a reason for hiding this comment

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

Some some small style changes

cpp/include/cudf/detail/null_mask.hpp Outdated Show resolved Hide resolved
cpp/src/bitmask/null_mask.cu Outdated Show resolved Hide resolved
@bdice
Copy link
Contributor Author

bdice commented Dec 20, 2021

rerun tests

1 similar comment
@bdice
Copy link
Contributor Author

bdice commented Dec 21, 2021

rerun tests

cpp/src/structs/utilities.cpp Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 12, 2022

Codecov Report

Merging #9904 (d1b90f9) into branch-22.02 (967a333) will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.02    #9904      +/-   ##
================================================
- Coverage         10.49%   10.41%   -0.08%     
================================================
  Files               119      119              
  Lines             20305    20498     +193     
================================================
+ Hits               2130     2134       +4     
- Misses            18175    18364     +189     
Impacted Files Coverage Δ
python/custreamz/custreamz/kafka.py 29.16% <0.00%> (-0.63%) ⬇️
python/dask_cudf/dask_cudf/sorting.py 92.30% <0.00%> (-0.61%) ⬇️
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <0.00%> (ø)
python/cudf/cudf/io/parquet.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/series.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/utils.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/dtypes.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/ioutils.py 0.00% <0.00%> (ø)
... and 20 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 093b0ad...d1b90f9. Read the comment docs.

@bdice
Copy link
Contributor Author

bdice commented Jan 12, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 3176258 into rapidsai:branch-22.02 Jan 12, 2022
@bdice bdice changed the title Return null count from inplace_bitmask_and. Return valid count from inplace_bitmask_and. Jan 13, 2022
@bdice bdice changed the title Return valid count from inplace_bitmask_and. Return count of set bits from inplace_bitmask_and. Jan 13, 2022
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 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