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

Change device_vector to device_uvector in nvtext source files #7512

Merged
merged 7 commits into from
Mar 11, 2021

Conversation

davidwendt
Copy link
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 trxcllnt and jrhemstad March 3, 2021 21:33
@codecov
Copy link

codecov bot commented Mar 4, 2021

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.

Copy link
Member

@harrism harrism left a comment

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.

cpp/src/text/generate_ngrams.cu Outdated Show resolved Hide resolved
cpp/src/text/ngrams_tokenize.cu Outdated Show resolved Hide resolved
cpp/src/text/ngrams_tokenize.cu Outdated Show resolved Hide resolved
cpp/src/text/ngrams_tokenize.cu Outdated Show resolved Hide resolved
cpp/src/text/ngrams_tokenize.cu Outdated Show resolved Hide resolved
cpp/src/text/ngrams_tokenize.cu Outdated Show resolved Hide resolved
cpp/src/text/ngrams_tokenize.cu Outdated Show resolved Hide resolved
cpp/src/text/tokenize.cu Outdated Show resolved Hide resolved
@davidwendt davidwendt requested a review from harrism March 10, 2021 11:56
@davidwendt
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 8cd927f into rapidsai: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
…ai#7512)

Reference rapidsai#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: rapidsai#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