-
Notifications
You must be signed in to change notification settings - Fork 915
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
Cleaning up for
loops with make_(counting_)transform_iterator
#6546
Conversation
Please update the changelog in order to start CI tests. View the gpuCI docs here. |
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.
Some of these updates could be even cleaner by just using the child iterators.
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #6546 +/- ##
==============================================
Coverage ? 82.20%
==============================================
Files ? 100
Lines ? 16966
Branches ? 0
==============================================
Hits ? 13947
Misses ? 3019
Partials ? 0 Continue to review full report at Codecov.
|
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.
Nice improvements, and even cleaner with Jake's observation about child iterators.
Please move make_counting_transform_iterator
into a libcudf header so we don't have to depend on libcudf_test and so it's available to users of libcudf that are not users of libcudf_test.
Do the following: // cpp/src/structs/structs_column_view.cu
std::vector<column_view> children;
children.reserve(child(index).num_children());
for (size_type i = 0; i < child(index).num_children(); i++) {
children.push_back(child(index).child(i));
} |
@codereport should this slip to 0.18? |
for
loops with make_counting_transform_iterator
for
loops with make_counting_transform_iterator
@codereport do you still plan to complete this? Moving to 0.19. |
This reverts commit b23ab39.
for
loops with make_counting_transform_iterator
for
loops with make_(counting_)transform_iterator
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. Some of the files need a copyright year update.
Co-authored-by: Jake Hemstad <[email protected]>
@gpucibot merge |
Came across some "raw" uses of `thrust::make_transform_iterator` + `thrust::make_counting_iterator` where now `cudf::detail::make_counting_transform_iterator` can be used (because of #6546). Authors: - Conor Hoekstra (@codereport) Approvers: - Devavret Makkar (@devavret) - David (@davidwendt) - Mark Harris (@harrism) URL: #7338
Doing some cleanup - using
make_counting_transform_iterator
andmake_transform_iterator
to clean upfor
loops and other code.Making an argument that
make_counting_transform_iterator
should be moved out ofcudf::test::
.Also, will clean up the
f
/begin
andop
naming conventions.Depends on: #7306