Skip to content

Conversation

@vyasr
Copy link
Contributor

@vyasr vyasr commented Oct 2, 2025

Description

Resolves #14229

Checklist

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

vyasr and others added 2 commits October 2, 2025 16:29
Changed Column.from_libcudf, Table.from_libcudf, and TableWithMetadata.from_libcudf
methods to require both stream and DeviceMemoryResource parameters instead of making
them optional. This enforces explicit memory resource management and prevents
accidental use of default/None values throughout the codebase.

Key changes:
- Remove default parameter values (=None, =*) from method signatures
- Remove internal _get_stream() and _get_memory_resource() processing
- Update unpack_from_memoryviews function to accept stream parameter
- All 265+ from_libcudf call sites now explicitly provide both parameters

This ensures consistent and explicit memory resource handling across all
pylibcudf operations, eliminating potential memory management issues from
implicit parameter defaults.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vyasr vyasr self-assigned this Oct 2, 2025
@vyasr vyasr requested a review from a team as a code owner October 2, 2025 19:11
@vyasr vyasr added bug Something isn't working non-breaking Non-breaking change labels Oct 2, 2025
@github-actions github-actions bot added Python Affects Python cuDF API. pylibcudf Issues specific to the pylibcudf package labels Oct 2, 2025
@GPUtester GPUtester moved this to In Progress in cuDF Python Oct 2, 2025
@vyasr vyasr requested a review from bdice October 2, 2025 19:49
@vyasr
Copy link
Contributor Author

vyasr commented Oct 6, 2025

/merge

@rapids-bot rapids-bot bot merged commit 8690c9f into rapidsai:branch-25.12 Oct 6, 2025
130 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in cuDF Python Oct 6, 2025
@vyasr vyasr deleted the feat/memory_resource_stream_required branch October 6, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Non-breaking change pylibcudf Issues specific to the pylibcudf package Python Affects Python cuDF API.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] Potential for use-after-free on libcudf/cudf interface boundaries

3 participants