Skip to content
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

Merged
merged 6 commits into from
Jul 20, 2021

Conversation

davidwendt
Copy link
Contributor

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 the strings_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.

@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function breaking Breaking change labels Jul 6, 2021
@davidwendt davidwendt self-assigned this Jul 6, 2021
@codecov
Copy link

codecov bot commented Jul 9, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.08@2a8d202). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a8d202...9081fad. Read the comment docs.

@davidwendt davidwendt marked this pull request as ready for review July 9, 2021 12:53
@davidwendt davidwendt requested a review from a team as a code owner July 9, 2021 12:53
@davidwendt davidwendt requested review from jrhemstad and vuule July 9, 2021 12:53
@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Jul 9, 2021
Comment on lines +202 to +209
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);
Copy link
Contributor

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.

@davidwendt
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 67b7aac into rapidsai:branch-21.08 Jul 20, 2021
@davidwendt davidwendt deleted the remove-create-offsets branch July 20, 2021 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team breaking Breaking change improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants