-
Notifications
You must be signed in to change notification settings - Fork 908
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
Use uvector
in replace_nulls
; Fix sort_helper::grouped_value
doc
#7256
Use uvector
in replace_nulls
; Fix sort_helper::grouped_value
doc
#7256
Conversation
Co-authored-by: Vukasin Milovanovic <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, have to update copyright
Codecov Report
@@ Coverage Diff @@
## branch-0.18 #7256 +/- ##
===============================================
+ Coverage 82.09% 82.18% +0.09%
===============================================
Files 97 100 +3
Lines 16474 16949 +475
===============================================
+ Hits 13524 13930 +406
- Misses 2950 3019 +69
Continue to review full report at Codecov.
|
@@ -99,7 +99,7 @@ struct sort_groupby_helper { | |||
/** | |||
* @brief Groups a column of values according to `keys` | |||
* | |||
* The order of values within each group is undefined. | |||
* The values within each group maintain their original order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update file copyright dates.
@@ -387,7 +387,7 @@ std::unique_ptr<cudf::column> replace_nulls_policy_impl(cudf::column_view const& | |||
auto valid_it = cudf::detail::make_validity_iterator(*device_in); | |||
auto in_begin = thrust::make_zip_iterator(thrust::make_tuple(index, valid_it)); | |||
|
|||
rmm::device_vector<cudf::size_type> gather_map(input.size()); | |||
rmm::device_uvector<cudf::size_type> gather_map(input.size(), stream); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should also update line 405 below (cudf::detail::gather call) to pass it the same stream.
This PR was opened during burndown, so really it should target branch-0.19. In this case it's probably safe, but please be careful in the future. |
rerun tests |
@gpucibot merge |
Small PR to provide two fixes:
rmm::device_uvector
in place ofdevice_vector
to improve efficiency. This is a scratch space, so supplied stream and default memory resource is used. Part of [BUG] use device_uvector instead of device_vector when possible #5380sort_helper::grouped_value
docstring to reflect change after use of stable sort.