Skip to content

Change device_vector to device_uvector in nvtext source files - #7512

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

Change device_vector to device_uvector in nvtext source files#7512
rapids-bot[bot] merged 7 commits into
NVIDIA:branch-0.19from
davidwendt:nvtext-vector2uvector

Conversation

@davidwendt

Copy link
Copy Markdown
Contributor

Reference #7287
This PR changes cpp/src/text/* source files to use rmm::device_uvector instead of rmm:device_vector. This allows keeping the memory operations on the provided kernel stream.

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

codecov Bot commented Mar 4, 2021

Copy link
Copy Markdown

Codecov Report

Merging #7512 (894e19c) into branch-0.19 (7871e7a) will increase coverage by 0.43%.
The diff coverage is 93.75%.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.19    #7512      +/-   ##
===============================================
+ Coverage        81.86%   82.29%   +0.43%     
===============================================
  Files              101      101              
  Lines            16884    17264     +380     
===============================================
+ Hits             13822    14208     +386     
+ Misses            3062     3056       -6     
Impacted Files Coverage Δ
python/cudf/cudf/core/column/column.py 87.80% <75.00%> (+0.04%) ⬆️
python/cudf/cudf/core/column/decimal.py 95.83% <100.00%> (+0.96%) ⬆️
python/cudf/cudf/core/column/string.py 86.76% <100.00%> (+0.26%) ⬆️
python/cudf/cudf/io/feather.py 100.00% <0.00%> (ø)
python/cudf/cudf/comm/serialize.py 0.00% <0.00%> (ø)
python/cudf/cudf/_fuzz_testing/io.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/struct.py 100.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/_version.py 0.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/io/tests/test_csv.py 100.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/io/tests/test_orc.py 100.00% <0.00%> (ø)
... and 40 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 850548d...e946d79. Read the comment docs.

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

Use back_element and async version of set_element.

Comment thread cpp/src/text/generate_ngrams.cu Outdated
Comment thread cpp/src/text/ngrams_tokenize.cu Outdated
Comment thread cpp/src/text/ngrams_tokenize.cu Outdated
Comment thread cpp/src/text/ngrams_tokenize.cu Outdated
Comment thread cpp/src/text/ngrams_tokenize.cu Outdated
Comment thread cpp/src/text/ngrams_tokenize.cu Outdated
Comment thread cpp/src/text/ngrams_tokenize.cu Outdated
Comment thread cpp/src/text/tokenize.cu Outdated
@davidwendt
davidwendt requested a review from harrism March 10, 2021 11:56
@davidwendt

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit 8cd927f into NVIDIA:branch-0.19 Mar 11, 2021
@davidwendt
davidwendt deleted the nvtext-vector2uvector branch March 11, 2021 14:57
hyperbolic2346 pushed a commit to hyperbolic2346/cudf that referenced this pull request Mar 25, 2021
…#7512)

Reference NVIDIA#7287 
This PR changes `cpp/src/text/*` source files to use `rmm::device_uvector` instead of `rmm:device_vector`. This allows keeping the memory operations on the provided kernel stream.

Authors:
  - David (@davidwendt)

Approvers:
  - Paul Taylor (@trxcllnt)
  - Mark Harris (@harrism)

URL: NVIDIA#7512
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 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.

3 participants