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

Convert tests to use device_uvector #8205

Merged
merged 29 commits into from
May 12, 2021

Conversation

harrism
Copy link
Member

@harrism harrism commented May 11, 2021

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
Copy link

codecov bot commented May 11, 2021

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.

Copy link
Contributor

@robertmaynard robertmaynard left a comment

Choose a reason for hiding this comment

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

Overall looks great!

cpp/include/cudf/detail/utilities/vector_factories.hpp Outdated Show resolved Hide resolved
cpp/tests/fixed_point/fixed_point_tests.cu Show resolved Hide resolved
@harrism
Copy link
Member Author

harrism commented May 12, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit cdf09ad into rapidsai: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