Skip to content

[Data] Add support for GPU Aggregate - #63708

Merged
richardliaw merged 24 commits into
ray-project:masterfrom
leewyang:gpu_aggregate
Jun 23, 2026
Merged

richardliaw merged 24 commits into
ray-project:masterfrom
leewyang:gpu_aggregate

Conversation

@leewyang

Copy link
Copy Markdown
Contributor

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 #63707

@leewyang
leewyang requested a review from a team as a code owner May 28, 2026 23:24

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

leewyang and others added 2 commits May 28, 2026 17:53
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Lee Yang <[email protected]>
@ray-gardener ray-gardener Bot added data Ray Data-related issues gpu GPU related issues community-contribution Contributed by the community labels May 29, 2026
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]>

@richardliaw richardliaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is looking great.

@richardliaw richardliaw added the go add ONLY when ready to merge, run all tests label Jun 16, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 031d9ba. Configure here.

@richardliaw richardliaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - @goutamvenkat-anyscale to review

@richardliaw
richardliaw merged commit 3381047 into ray-project:master Jun 23, 2026
3 checks passed
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
## 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>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community data Ray Data-related issues go add ONLY when ready to merge, run all tests gpu GPU related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Data] Enable GPU Aggregate

3 participants