-
Notifications
You must be signed in to change notification settings - Fork 912
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
Add groupby product support #7763
Add groupby product support #7763
Conversation
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.
Doesn't target_type_impl
need to be updated?
struct target_type_impl<SourceType, aggregation::VARIANCE> { |
It's enabled with
|
Codecov Report
@@ Coverage Diff @@
## branch-0.20 #7763 +/- ##
===============================================
+ Coverage 82.88% 82.92% +0.03%
===============================================
Files 103 103
Lines 17668 17664 -4
===============================================
+ Hits 14645 14648 +3
+ Misses 3023 3016 -7
Continue to review full report at Codecov.
|
Co-authored-by: Nghia Truong <[email protected]>
rerun tests |
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.
In addition to the inline comments, I had one additional question that isn't relevant to this exact PR but I'd appreciate an answer on (I don't know this part of the C++ code base very well yet): What is the purpose of the elementwise_aggregator
? It seems like an unnecessary level of indirection between aggregate_row
and update_target_element
since the same template specializations could be applied without it.
// This test will not work until the following ptxas bug is fixed in 10.2 | ||
// https://nvbugswb.nvidia.com/NvBugs5/SWBug.aspx?bugid=3186317&cp= | ||
TYPED_TEST(groupby_product_test, DISABLED_dictionary) |
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.
// This test will not work until the following ptxas bug is fixed in 10.2 | |
// https://nvbugswb.nvidia.com/NvBugs5/SWBug.aspx?bugid=3186317&cp= | |
TYPED_TEST(groupby_product_test, DISABLED_dictionary) | |
TYPED_TEST(groupby_product_test, dictionary) |
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.
This may need another cleanup. At current state, code needs specialization for every keys type.
Also another PR #7949 is also adding few operations.
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.
OK, if you think it's best to wait to enable this test feel free to resolve.
It also allows us to have the base case automatically handle any error paths that don't have specializations: cudf/cpp/include/cudf/detail/aggregation/aggregation.cuh Lines 95 to 108 in b8baed5
|
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.
Looks good assuming no further action items on my one open thread.
@gpucibot merge |
@gpucibot merge |
closes #4882
Added groupby.product support in both hash and sort groupby.