Skip to content

Remove unneeded step parameter from strings::detail::copy_slice - #7525

Merged
rapids-bot[bot] merged 9 commits into
NVIDIA:branch-0.19from
davidwendt:strings-vector2uvector
Mar 11, 2021
Merged

Remove unneeded step parameter from strings::detail::copy_slice#7525
rapids-bot[bot] merged 9 commits into
NVIDIA:branch-0.19from
davidwendt:strings-vector2uvector

Conversation

@davidwendt

@davidwendt davidwendt commented Mar 5, 2021

Copy link
Copy Markdown
Contributor

This started to be a change converting some device_vector usages in cpp/src/strings source files to use device_uvector instead. The cpp/src/strings/copying/copying.cu source has the implementation for cudf::strings::detail::copy_slice() and used a device_vector to handle a step parameter. I can not longer find this parameter being used. I believe it was a hold over from porting nvstrings. So this PR mainly includes changes for removing this unneeded parameter which also removes the need for the device_vector or temporary memory in this function.
And, it also includes changes to attributes.cu to use the device_uvector as well.

I'm marking this as non-breaking change since it is a change to a detail API and did not seem to be used anywhere in this repo.

Reference #7287

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. strings strings issues (C++ and Python) improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 5, 2021
@davidwendt davidwendt self-assigned this Mar 5, 2021
@davidwendt
davidwendt requested a review from a team as a code owner March 5, 2021 22:54
@davidwendt
davidwendt requested review from jrhemstad and trxcllnt March 5, 2021 22:55
@codecov

codecov Bot commented Mar 6, 2021

Copy link
Copy Markdown

Codecov Report

Merging #7525 (a6f91f2) into branch-0.19 (7871e7a) will increase coverage by 0.51%.
The diff coverage is 92.85%.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.19    #7525      +/-   ##
===============================================
+ Coverage        81.86%   82.38%   +0.51%     
===============================================
  Files              101      101              
  Lines            16884    17339     +455     
===============================================
+ Hits             13822    14284     +462     
+ Misses            3062     3055       -7     
Impacted Files Coverage Δ
python/cudf/cudf/core/index.py 93.34% <ø> (+0.48%) ⬆️
python/cudf/cudf/core/column/column.py 87.80% <75.00%> (+0.04%) ⬆️
python/cudf/cudf/core/column/numerical.py 94.85% <85.71%> (-0.17%) ⬇️
python/cudf/cudf/core/frame.py 89.12% <89.47%> (+0.10%) ⬆️
python/cudf/cudf/core/column/decimal.py 93.33% <90.47%> (-1.54%) ⬇️
python/cudf/cudf/core/dataframe.py 90.58% <95.00%> (+0.11%) ⬆️
python/cudf/cudf/core/series.py 91.57% <95.55%> (+0.78%) ⬆️
python/cudf/cudf/core/column/string.py 86.76% <100.00%> (+0.26%) ⬆️
python/cudf/cudf/core/indexing.py 96.29% <100.00%> (+0.23%) ⬆️
python/cudf/cudf/utils/gpu_utils.py 53.65% <0.00%> (-4.88%) ⬇️
... and 50 more

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 3355e60...a6f91f2. Read the comment docs.

@hyperbolic2346 hyperbolic2346 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Comment thread cpp/include/cudf/strings/copying.hpp Outdated
@davidwendt
davidwendt requested a review from a team as a code owner March 8, 2021 16:47
@github-actions github-actions Bot added the conda label Mar 8, 2021
@davidwendt

Copy link
Copy Markdown
Contributor Author

rerun tests

@davidwendt davidwendt added breaking Breaking change and removed non-breaking Non-breaking change labels Mar 9, 2021
@davidwendt

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit 3bcd1af into NVIDIA:branch-0.19 Mar 11, 2021
@davidwendt
davidwendt deleted the strings-vector2uvector branch March 11, 2021 22:18
hyperbolic2346 pushed a commit to hyperbolic2346/cudf that referenced this pull request Mar 25, 2021
…IA#7525)

This started to be a change converting some `device_vector` usages in `cpp/src/strings` source files to use `device_uvector` instead. The `cpp/src/strings/copying/copying.cu` source has the implementation for `cudf::strings::detail::copy_slice()` and used a `device_vector` to handle a `step` parameter. I can not longer find this parameter being used. I believe it was a hold over from porting nvstrings. So this PR mainly includes changes for removing this unneeded parameter which also removes the need for the `device_vector` or temporary memory in this function.
And, it also includes changes to `attributes.cu` to use the `device_uvector` as well.

~~I'm marking this as non-breaking change since it is a change to a `detail` API and did not seem to be used anywhere in this repo.~~

Reference NVIDIA#7287

Authors:
  - David (@davidwendt)

Approvers:
  - AJ Schmidt (@ajschmidt8)
  - Mike Wilson (@hyperbolic2346)
  - Jake Hemstad (@jrhemstad)

URL: NVIDIA#7525
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. strings strings issues (C++ and Python)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants