Repository navigation
[Data] Add support for GPU Aggregate - #63708
Conversation
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces GPU-native hash aggregation using RAPIDS MPF. It adds a new hash_aggregate.py module containing the GPU aggregation specs, plans, actors, and operators, and refactors GPURankPool in hash_shuffle.py to be reusable across both shuffle and aggregation operators. The physical planner is updated to route aggregates to the new GPU operator when the GPU shuffle strategy is enabled, and comprehensive unit tests are added. The review feedback highlights two important improvements in hash_shuffle.py: recalculating the stale remaining timeout before waiting for worker setup, and changing num_returns to 1 in ray.wait to prevent artificial polling delays.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
…gs into separate classes; remove _groupby helper; log fallback to CPU Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
… to separate file Signed-off-by: Lee Yang <[email protected]>
…built-ins Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
…with inlined code Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
richardliaw
left a comment
There was a problem hiding this comment.
This is looking great.
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
Signed-off-by: Lee Yang <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 031d9ba. Configure here.
richardliaw
left a comment
There was a problem hiding this comment.
LGTM - @goutamvenkat-anyscale to review
## Description This PR adds support for GPU Aggregate (with fallback to CPU Aggregate path, if needed). ## Changes - Refactors `GPURankPool` to handle different types of GPU enabled actors. - Adds `GPUHashAggregateActor` and `GPUHashAggregateOperator`. - Modifies `plan_all_to_all_op` to inject a `GPUHashAggregateOperator` when `ShuffleStrategy.GPU_SHUFFLE` is enabled. ## Related issues Fixes ray-project#63707 --------- Signed-off-by: Lee Yang <[email protected]> Signed-off-by: Lee Yang <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
## Description This PR adds support for GPU Aggregate (with fallback to CPU Aggregate path, if needed). ## Changes - Refactors `GPURankPool` to handle different types of GPU enabled actors. - Adds `GPUHashAggregateActor` and `GPUHashAggregateOperator`. - Modifies `plan_all_to_all_op` to inject a `GPUHashAggregateOperator` when `ShuffleStrategy.GPU_SHUFFLE` is enabled. ## Related issues Fixes ray-project#63707 --------- Signed-off-by: Lee Yang <[email protected]> Signed-off-by: Lee Yang <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: 400Ping <[email protected]>

Description
This PR adds support for GPU Aggregate (with fallback to CPU Aggregate path, if needed).
Changes
GPURankPoolto handle different types of GPU enabled actors.GPUHashAggregateActorandGPUHashAggregateOperator.plan_all_to_all_opto inject aGPUHashAggregateOperatorwhenShuffleStrategy.GPU_SHUFFLEis enabled.Related issues
Fixes #63707