Skip to content

Multi-rank fixes for cudf-polars streaming - #22361

Merged
rapids-bot[bot] merged 3 commits into
NVIDIA:mainfrom
madsbk:multi-rank-bug-fixes
May 5, 2026
Merged

Multi-rank fixes for cudf-polars streaming#22361
rapids-bot[bot] merged 3 commits into
NVIDIA:mainfrom
madsbk:multi-rank-bug-fixes

Conversation

@madsbk

@madsbk madsbk commented May 4, 2026

Copy link
Copy Markdown
Contributor

Fix bugs that appear when running with num_ranks > 1, where client-side pl.concat(per_rank_outputs) exposes assumptions that do not hold under single-rank execution.

These were all discovered while working on multi-rank tests.

NB: Please take a close look during review, as I’m still a bit unfamiliar with the IR part of cudf-polars.

@madsbk madsbk self-assigned this May 4, 2026
@madsbk madsbk added bug Something isn't working non-breaking Non-breaking change labels May 4, 2026
@github-actions github-actions Bot added Python Affects Python cuDF API. cudf-polars Issues specific to cudf-polars labels May 4, 2026
@GPUtester GPUtester moved this to In Progress in cuDF Python May 4, 2026
@madsbk
madsbk marked this pull request as ready for review May 4, 2026 10:11
@madsbk
madsbk requested a review from a team as a code owner May 4, 2026 10:11
@madsbk
madsbk requested a review from TomAugspurger May 4, 2026 10:11
@NVIDIA NVIDIA deleted a comment from copy-pr-bot Bot May 4, 2026

@Matt711 Matt711 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mostly looks good. We should open an issue for the concat ordering issue I think.

Comment thread python/cudf_polars/cudf_polars/experimental/rapidsmpf/join.py Outdated
Comment thread python/cudf_polars/tests/experimental/test_dataframescan.py Outdated
Comment thread python/cudf_polars/tests/test_groupby.py
@madsbk
madsbk requested a review from Matt711 May 5, 2026 07:09
@madsbk

madsbk commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 17d0bb9 into NVIDIA:main May 5, 2026
179 of 184 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in cuDF Python May 5, 2026
@madsbk
madsbk deleted the multi-rank-bug-fixes branch May 6, 2026 06:07
galipremsagar pushed a commit to galipremsagar/cudf that referenced this pull request May 6, 2026
Fix bugs that appear when running with `num_ranks > 1`, where client-side `pl.concat(per_rank_outputs)` exposes assumptions that do not hold under single-rank execution.

These were all discovered while working on multi-rank tests.

**NB:** Please take a close look during review, as I’m still a bit unfamiliar with the IR part of cudf-polars.

Authors:
  - Mads R. B. Kristensen (https://github.com/madsbk)

Approvers:
  - Matthew Murray (https://github.com/Matt711)
  - Lawrence Mitchell (https://github.com/wence-)

URL: NVIDIA#22361
shrshi pushed a commit to shrshi/cudf that referenced this pull request May 12, 2026
Fix bugs that appear when running with `num_ranks > 1`, where client-side `pl.concat(per_rank_outputs)` exposes assumptions that do not hold under single-rank execution.

These were all discovered while working on multi-rank tests.

**NB:** Please take a close look during review, as I’m still a bit unfamiliar with the IR part of cudf-polars.

Authors:
  - Mads R. B. Kristensen (https://github.com/madsbk)

Approvers:
  - Matthew Murray (https://github.com/Matt711)
  - Lawrence Mitchell (https://github.com/wence-)

URL: NVIDIA#22361
rapids-bot Bot pushed a commit that referenced this pull request May 13, 2026
- Reverts #22361, which suppressed replicated chunks at intermediate operators and broke downstream consumers under multi-rank.
  - Dedupe replicated outputs once, at the Dask and Ray frontends where the client concatenates per-rank results. SPMD returns per-rank results unchanged.
  - `ChannelMetadata.duplicated=True` now consistently means every rank holds the data.
  - Depends on #22381

Authors:
  - Matthew Murray (https://github.com/Matt711)

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: #22394
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cudf-polars Issues specific to cudf-polars non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants