Skip to content

Convert tests to use device_uvector - #8205

Merged
rapids-bot[bot] merged 29 commits into
NVIDIA:branch-0.20from
harrism:fea_tests_uvector
May 12, 2021
Merged

rapids-bot[bot] merged 29 commits into
NVIDIA:branch-0.20from
harrism:fea_tests_uvector

Conversation

@harrism

@harrism harrism commented May 11, 2021 •

Copy link
Copy Markdown
Contributor

Converts all remaining tests to use device_uvector instead of device_vector.

Contributes to #7287

Also converts a lot of std::vector in tests to thrust::host_vector to avoid problems with vector<bool>.

Adds a new utility cudf::detail::make_host_vector_async (and sync version) which creates a thrust::host_vector<T> from a device_span. Also makes it possible to create a host_span from a std::string.

@harrism
harrism requested a review from a team as a code owner May 11, 2021 02:57
@harrism
harrism requested review from robertmaynard and ttnghia May 11, 2021 02:57
@github-actions github-actions Bot added the CMake CMake build issue label May 11, 2021
@github-actions github-actions Bot added the libcudf Affects libcudf (C++/CUDA) code. label May 11, 2021
@harrism harrism added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change 3 - Ready for Review Ready for review by team labels May 11, 2021
@harrism harrism self-assigned this May 11, 2021
@codecov

codecov Bot commented May 11, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #8205 (d186687) into branch-0.20 (51336df) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.20    #8205      +/-   ##
===============================================
- Coverage        82.88%   82.88%   -0.01%     
===============================================
  Files              103      104       +1     
  Lines            17668    17907     +239     
===============================================
+ Hits             14645    14843     +198     
- Misses            3023     3064      +41     
Impacted Files Coverage Δ
python/cudf/cudf/core/tools/datetimes.py 80.42% <0.00%> (-4.11%) ⬇️
python/cudf/cudf/core/column/decimal.py 90.20% <0.00%> (-2.72%) ⬇️
python/cudf/cudf/core/column/datetime.py 88.03% <0.00%> (-1.88%) ⬇️
python/cudf/cudf/core/column/struct.py 94.73% <0.00%> (-1.56%) ⬇️
python/cudf/cudf/utils/dtypes.py 82.20% <0.00%> (-1.24%) ⬇️
python/dask_cudf/dask_cudf/groupby.py 91.28% <0.00%> (-0.88%) ⬇️
python/cudf/cudf/core/series.py 91.17% <0.00%> (-0.56%) ⬇️
python/cudf/cudf/core/index.py 92.52% <0.00%> (-0.55%) ⬇️
python/cudf/cudf/core/column/column.py 88.20% <0.00%> (-0.44%) ⬇️
python/cudf/cudf/core/column/lists.py 86.98% <0.00%> (-0.43%) ⬇️
... and 28 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 c2c67de...d186687. Read the comment docs.

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

Overall looks great!

Comment thread cpp/include/cudf/utilities/span.hpp Resolved
@harrism

harrism commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit cdf09ad into NVIDIA:branch-0.20 May 12, 2021
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 CMake CMake build issue 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