-
Notifications
You must be signed in to change notification settings - Fork 915
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
Add device_memory_resource parameter to create_string_vector_from_column #10673
Add device_memory_resource parameter to create_string_vector_from_column #10673
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.06 #10673 +/- ##
================================================
+ Coverage 86.38% 86.41% +0.02%
================================================
Files 142 142
Lines 22334 22334
================================================
+ Hits 19294 19300 +6
+ Misses 3040 3034 -6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! All looks good to me.
@gpucibot merge |
…from_column (rapidsai#10673)" This reverts commit 08cd428.
Closes #10717 Fixes bug introduced with changes in #10673 which uses the `cudf::make_strings_column` that accepts a span of `string_view` objects with a null-placeholder. The placeholder can be unintentionally created in `create_string_vector_from_column` when given a strings column where all the rows are empty. The utility is fixed to prevent creating the placeholder for empty strings. A gtest was added to scatter from/to an all-empty strings column to verify this behavior. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Nghia Truong (https://github.com/ttnghia) - Bradley Dice (https://github.com/bdice) - Robert Maynard (https://github.com/robertmaynard) URL: #10724
Adds the
rmm::mr::device_memory_resource
parameter to thecudf::strings::detail::create_string_vector_from_column
function. This will be called in a future API in a later PR and the resulting memory object will returned to the user.Also found and removed a few related functions that are no longer necessary and updated the callers appropriately simplifying the logic there.