-
Notifications
You must be signed in to change notification settings - Fork 1k
Add fast paths for DataFrame.to_cupy
#18801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rapids-bot
merged 15 commits into
rapidsai:branch-25.06
from
Matt711:fea/cudf/df-cupy-fast-path
May 15, 2025
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c539124
Add fast paths for DataFrame.to_cupy
Matt711 2c298df
clean up
Matt711 59cee55
more clean up
Matt711 0c92c18
add tests and fix bug
Matt711 a8ee783
merge conflict
Matt711 30f613b
Merge branch 'branch-25.06' into fea/cudf/df-cupy-fast-path
Matt711 366005d
address review
Matt711 03ec777
address review
Matt711 e83c07f
address review
Matt711 614492f
address review
Matt711 eee909e
docs
Matt711 3db48d8
doc failure and benchmarks failures
Matt711 9ace63e
Merge branch 'branch-25.06' into fea/cudf/df-cupy-fast-path
Matt711 5bca32d
docs
Matt711 ea5e0cd
docs
Matt711 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,24 @@ | ||
| # Copyright (c) 2024, NVIDIA CORPORATION. | ||
| # Copyright (c) 2024-2025, NVIDIA CORPORATION. | ||
|
|
||
| from libc.stddef cimport size_t | ||
| from libc.stdint cimport uintptr_t | ||
|
|
||
| from pylibcudf.libcudf.types cimport size_type | ||
|
|
||
| from rmm.pylibrmm.stream cimport Stream | ||
| from rmm.pylibrmm.device_buffer cimport DeviceBuffer | ||
|
|
||
| from .column cimport Column | ||
| from .scalar cimport Scalar | ||
| from .table cimport Table | ||
| from .types cimport DataType | ||
|
|
||
|
|
||
| cpdef Column interleave_columns(Table source_table) | ||
| cpdef Table tile(Table source_table, size_type count) | ||
| cpdef void table_to_array( | ||
| Table input_table, | ||
| uintptr_t ptr, | ||
| size_t size, | ||
| Stream stream=* | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| # Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
|
||
| from rmm.pylibrmm.stream import Stream | ||
|
|
||
| from pylibcudf.column import Column | ||
| from pylibcudf.table import Table | ||
|
|
||
| def interleave_columns(source_table: Table) -> Column: ... | ||
| def tile(source_table: Table, count: int) -> Table: ... | ||
| def table_to_array( | ||
| input_table: Table, | ||
| ptr: int, | ||
| size: int, | ||
| stream: Stream, | ||
| ) -> None: ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.