-
Notifications
You must be signed in to change notification settings - Fork 927
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
Remove unused cudf::strings::create_offsets #8663
Remove unused cudf::strings::create_offsets #8663
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #8663 +/- ##
===============================================
Coverage ? 10.53%
===============================================
Files ? 116
Lines ? 18916
Branches ? 0
===============================================
Hits ? 1993
Misses ? 16923
Partials ? 0 Continue to review full report at Codecov.
|
auto const scv = strings_column_view(c); | ||
auto const h_chars = cudf::detail::make_std_vector_sync<char>( | ||
cudf::device_span<char const>(scv.chars().data<char>(), scv.chars().size()), | ||
rmm::cuda_stream_default); | ||
auto const h_offsets = cudf::detail::make_std_vector_sync( | ||
cudf::device_span<cudf::offset_type const>( | ||
scv.offsets().data<cudf::offset_type>() + scv.offset(), scv.size() + 1), | ||
rmm::cuda_stream_default); |
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.
Humm, I think we should better use 2 calls to make_vector_async
then call stream sync, because 2 calls to make_vector_sync
will make 2 implicit stream syncs.
Nevertheless, this is in the test namespace thus I'm not worried much about performance.
@gpucibot merge |
The
create_offsets
strings API was created and ported from NVStrings for use in interchanging data with the cuDF python layer. This API no longer appears to be used or required. Removing it simplifies thestrings_column_view.hpp
which is included by many libcudf source files.The only dependency was in some gtests files which were also updated in this PR.
The change is marked 'breaking' since a public API is being removed.