Skip to content

Fix stream-ordering bugs related to pool streams - #21908

Merged
rapids-bot[bot] merged 4 commits into
NVIDIA:mainfrom
vuule:bug-fix-stream-pool-sync
Apr 1, 2026
Merged

rapids-bot[bot] merged 4 commits into
NVIDIA:mainfrom
vuule:bug-fix-stream-pool-sync

Conversation

@vuule

@vuule vuule commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes stream-ordering bugs identified in #14162 (comment).

JSON (ingest_raw_input): Added a missing join_streams call. Fixed a race condition between the memcpy_batch_async and thrust::scatter on the user stream and device_read_async on the pool streams.

CSV (read_csv): Reassign the deallocation stream on string columns to the user stream so all output columns are deallocated on the user stream.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Mar 24, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the libcudf Affects libcudf (C++/CUDA) code. label Mar 24, 2026
@vuule vuule added bug Something isn't working non-breaking Non-breaking change labels Mar 24, 2026
@vuule vuule changed the title Fix issues that stem from allocations using the pool streams Fix stream-ordering bugs related to pool streams Mar 24, 2026
vuule added 3 commits April 1, 2026 00:26
Rebind string columns to the caller stream after parallel CSV reads using
cudf::rebind_stream. Join the JSON ingest stream pool before batched async
memcpy so host writes are ordered relative to the caller stream.
@vuule

vuule commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test a220eb1

@vuule
vuule marked this pull request as ready for review April 1, 2026 00:43
@vuule
vuule requested a review from a team as a code owner April 1, 2026 00:43
@vuule
vuule requested review from PointKernel and devavret April 1, 2026 00:43
@vuule

vuule commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 6dec0b1 into NVIDIA:main Apr 1, 2026
106 of 108 checks passed
@vuule
vuule deleted the bug-fix-stream-pool-sync branch April 1, 2026 02:27
shrshi pushed a commit to shrshi/cudf that referenced this pull request May 12, 2026
Fixes stream-ordering bugs identified in NVIDIA#14162 (comment).

JSON (`ingest_raw_input`): Added a missing `join_streams` call. Fixed a race condition between the  `memcpy_batch_async` and `thrust::scatter` on the user stream and `device_read_async` on the pool streams.

CSV (`read_csv`): Reassign the deallocation stream on string columns to the user stream so all output columns are deallocated on the user stream.

Authors:
  - Vukasin Milovanovic (https://github.com/vuule)

Approvers:
  - Muhammad Haseeb (https://github.com/mhaseeb123)
  - Bradley Dice (https://github.com/bdice)
  - Yunsong Wang (https://github.com/PointKernel)

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

Labels

bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants