-
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 quantile gtests coded in namespace cudf::test #12049
Fix quantile gtests coded in namespace cudf::test #12049
Conversation
Codecov ReportBase: 88.02% // Head: 88.04% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-22.12 #12049 +/- ##
================================================
+ Coverage 88.02% 88.04% +0.02%
================================================
Files 135 135
Lines 22025 22025
================================================
+ Hits 19388 19393 +5
+ Misses 2637 2632 -5
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving C++ and CMake with two minor requests.
@gpucibot merge |
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 Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Bradley Dice (https://github.com/bdice) - Nghia Truong (https://github.com/ttnghia) - Ray Douglass (https://github.com/raydouglass) URL: #12050
Description
Fixes
cpp/tests/quantiles
gtests source files coded in namespacecudf::test
The
tdigest_utilities.cu
was moved tocpp/tests/utilities
since it is used by quantiles, groupby, reductions tests. Also, the header for the functions defined in this source file is incpp/include/cudf_tests/
.The
cpp/include/cudf_tests/tdigest_utilities.cuh
was also including a source file header fromcudf/tests/groupby
which seemed odd and was corrected by moving the code it needed directly into thetdigest_utilities.cuh
header. These functions were used by quantiles, groupby, reductions, etc so it made sense for them to be moved into this utility header.Simple reworking some of the code in
percentile_approx_test.cu
allowed it to become a.cpp
file as well.Also made some minor changes to the
tdigest_column_view
class to isolate a functor inside the class instead of the namespace scope.No function or test has changed just the source code reworked or moved around.
Reference #11734
Checklist