-
Notifications
You must be signed in to change notification settings - Fork 916
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
Implement HOST_UDF
aggregation for reduction and segmented reduction
#17645
base: branch-25.02
Are you sure you want to change the base?
Conversation
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
The logic for Because the interfaces are no longer designed to be universal for all contexts, they are much simpler, avoiding potential bugs due to universal usage of one interface for different contexts. |
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
@@ -1,6 +1,6 @@ | |||
/* | |||
* | |||
* Copyright (c) 2020-2023, NVIDIA CORPORATION. | |||
* Copyright (c) 2020-2025, NVIDIA CORPORATION. |
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.
Change the copyright header for the files that were forgotten in the previous PR. Github CI seems does not check Java files.
Co-authored-by: nvdbaranec <[email protected]>
Co-authored-by: nvdbaranec <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
@@ -256,7 +256,7 @@ public static ReductionAggregation collectSet() { | |||
* @param nanEquality Flag to specify whether NaN values in floating point column should be considered equal. | |||
*/ | |||
public static ReductionAggregation collectSet(NullPolicy nullPolicy, | |||
NullEquality nullEquality, NaNEquality nanEquality) { | |||
NullEquality nullEquality, NaNEquality nanEquality) { |
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.
Are these style adjustments necessary?
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.
I think so. This is what the IDE automatically reformat. I checked other files and this seems consistent. For example:
cudf/java/src/main/java/ai/rapids/cudf/ColumnVector.java
Lines 151 to 153 in a6b9699
public ColumnVector(DType type, long rows, Optional<Long> nullCount, | |
DeviceMemoryBuffer dataBuffer, DeviceMemoryBuffer validityBuffer, | |
DeviceMemoryBuffer offsetBuffer, List<DeviceMemoryBuffer> toClose, long[] childHandles) { |
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.
From a java standpoint the code matches what was there before.
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.
Approved trivial CMake changes
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.
I'm really happy with the final outcome of this PR. The finalized APIs are much more accessible and user-friendly. I appreciate your prompt responses to the review comments and the time you took for offline discussions to address all my concerns and answer my questions.
Looks good to me!
Co-authored-by: Yunsong Wang <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Following #17592, this enables
HOST_UDF
aggregation in reduction and segmented reduction, allowing to execute a host-side user-defined function (UDF) through libcudf aggregation framework.Closes #16633.