-
Notifications
You must be signed in to change notification settings - Fork 902
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
Refactor strings column factories #7397
Refactor strings column factories #7397
Conversation
…n factories to use them
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7397 +/- ##
===============================================
+ Coverage 81.80% 82.26% +0.45%
===============================================
Files 101 101
Lines 16695 17244 +549
===============================================
+ Hits 13658 14185 +527
- Misses 3037 3059 +22
Continue to review full report at Codecov.
|
0, | ||
stream); | ||
auto repl = make_strings_column(cudf::detail::make_device_uvector_async(repl_chars, stream), | ||
cudf::detail::make_device_uvector_async(repl_offsets, stream), |
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.
Since _chars
and _offsets
are always the same, can we move them to a broader scope to avoid needing stream synchronization?
@cwharris what changes are you requesting? |
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.
Some of the files need 2021 added to their copyright line.
Thanks. Done. |
rerun tests |
@harrism you addressed my concerns. 👍 |
@gpucibot merge |
This PR refactors strings column factories to eliminate the use of
device_vector
andstd::vector
parameters, and to facility more use ofdevice_uvector
in calls to the factories. This is a small part of #7287 . Multiple versions ofmake_strings_columns
takedevice_vector
parameters. This PR expands the use of iterator anddevice_span
versions to enable switching todevice_uvector
as described in #7287. It also adds newmake_device_uvector_async/sync
utility functions.This will help facilitate safe CUDA stream usage.