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 extra total chars size calculation from cudf::concatenate #14540

Merged
merged 7 commits into from
Dec 7, 2023

Conversation

davidwendt
Copy link
Contributor

@davidwendt davidwendt commented Nov 30, 2023

Description

Changes bounds check logic in cudf::concatenate to remove the upfront chars bytes calculation on strings columns.
The calculation was thrown away and redone later (and more efficiently) during the call to cudf::strings::detail::concatenate. There does not seem to be a need to check this twice. A gtest was added to make sure the appropriate exception is thrown as expected.
Reference #14202

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 30, 2023
@davidwendt davidwendt self-assigned this Nov 30, 2023
@davidwendt davidwendt changed the title Compute total chars size using CUDA kernel in cudf::concatenate Remove extra total chars size calculation from cudf::concatenate Dec 1, 2023
@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Dec 4, 2023
@davidwendt davidwendt marked this pull request as ready for review December 4, 2023 16:46
@davidwendt davidwendt requested a review from a team as a code owner December 4, 2023 16:46
@davidwendt davidwendt requested a review from vuule December 6, 2023 00:26
@vuule vuule added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team labels Dec 6, 2023
@davidwendt
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 6a6cba5 into rapidsai:branch-24.02 Dec 7, 2023
68 checks passed
@davidwendt davidwendt deleted the concat-strings-sizes branch December 7, 2023 18:10
karthikeyann pushed a commit to karthikeyann/cudf that referenced this pull request Dec 12, 2023
…idsai#14540)

Changes bounds check logic in `cudf::concatenate` to remove the upfront chars bytes calculation on strings columns. 
The calculation was thrown away and redone later (and more efficiently) during the call to `cudf::strings::detail::concatenate`. There does not seem to be a need to check this twice. A gtest was added to make sure the appropriate exception is thrown as expected.
Reference rapidsai#14202

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Vukasin Milovanovic (https://github.com/vuule)
  - Karthikeyan (https://github.com/karthikeyann)
  - Nghia Truong (https://github.com/ttnghia)

URL: rapidsai#14540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants