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

Change cudf::detail::tdigest to cudf::tdigest::detail #12050

Merged
merged 22 commits into from
Nov 9, 2022

Conversation

davidwendt
Copy link
Contributor

Description

Changes cudf::detail::tdigest to cudf::tdigest::detail in the tdigest source files.
While working on #12049, found there was a mixture of cudf::tdigest and cudf::detail::tdigest that seemed confusing and inconsistent. Changing to cudf::tdigest::detail made this code easier to follow.
Also, move the size_begin() member function in tdigest_column_view out as a standalone function in a separate .cuh header since it is only used in a few places and the tdigest_column_view.cuh is included in many places. This allowed changing the tdigest_column_view.cuh to a .hpp file.

Depends on #12049

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 2, 2022
@davidwendt davidwendt self-assigned this Nov 2, 2022
@github-actions github-actions bot added the CMake CMake build issue label Nov 2, 2022
@github-actions github-actions bot added the conda label Nov 3, 2022
@codecov
Copy link

codecov bot commented Nov 5, 2022

Codecov Report

Base: 87.47% // Head: 88.07% // Increases project coverage by +0.59% 🎉

Coverage data is based on head (83bb91a) compared to base (f817d96).
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff                @@
##           branch-22.12   #12050      +/-   ##
================================================
+ Coverage         87.47%   88.07%   +0.59%     
================================================
  Files               133      135       +2     
  Lines             21826    22025     +199     
================================================
+ Hits              19093    19398     +305     
+ Misses             2733     2627     -106     
Impacted Files Coverage Δ
python/cudf/cudf/core/column/interval.py 85.45% <0.00%> (-9.10%) ⬇️
python/cudf/cudf/io/text.py 91.66% <0.00%> (-8.34%) ⬇️
python/cudf/cudf/core/_base_index.py 81.28% <0.00%> (-4.27%) ⬇️
python/cudf/cudf/io/json.py 92.06% <0.00%> (-2.68%) ⬇️
python/cudf/cudf/utils/utils.py 89.91% <0.00%> (-0.69%) ⬇️
python/cudf/cudf/core/column/timedelta.py 90.17% <0.00%> (-0.58%) ⬇️
python/cudf/cudf/core/column/datetime.py 89.21% <0.00%> (-0.51%) ⬇️
python/cudf/cudf/core/column/column.py 87.96% <0.00%> (-0.46%) ⬇️
python/dask_cudf/dask_cudf/core.py 73.72% <0.00%> (-0.41%) ⬇️
python/cudf/cudf/io/parquet.py 90.45% <0.00%> (-0.39%) ⬇️
... and 39 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions github-actions bot added the Java Affects Java cuDF API. label Nov 5, 2022
@github-actions github-actions bot removed the CMake CMake build issue label Nov 8, 2022
@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Nov 8, 2022
@davidwendt davidwendt marked this pull request as ready for review November 8, 2022 13:30
@davidwendt davidwendt requested review from a team as code owners November 8, 2022 13:30
Copy link
Contributor

@ttnghia ttnghia left a comment

Choose a reason for hiding this comment

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

This is a potential improvement with documentation: We need to standardize either cudf::detail::module_name or cudf::module_name::detail namespace. From this PR, cudf::module_name::detail should be favored and published into the dev guide.

@bdice
Copy link
Contributor

bdice commented Nov 8, 2022

This is a potential improvement with documentation: We need to standardize either cudf::detail::module_name or cudf::module_name::detail namespace. From this PR, cudf::module_name::detail should be favored and published into the dev guide.

This also came up in #12046 (comment).

@vuule
Copy link
Contributor

vuule commented Nov 8, 2022

This is a potential improvement with documentation: We need to standardize either cudf::detail::module_name or cudf::module_name::detail namespace. From this PR, cudf::module_name::detail should be favored and published into the dev guide.

This also came up in #12046 (comment).

I'm planning to open an issue for cuIO (which is mostly in the wrong order of namespaces). Let me know if this is something we need to fix in the rest of libcudf as well, so the issue reflects that too.

@davidwendt
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 628cd4f into rapidsai:branch-22.12 Nov 9, 2022
@davidwendt davidwendt deleted the fix-tdigest-detail-ns branch November 9, 2022 13:41
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 Java Affects Java cuDF API. libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants