-
Notifications
You must be signed in to change notification settings - Fork 912
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
Replace remaining instances of rmm::cuda_stream_default with cudf::default_stream_value #11082
Replace remaining instances of rmm::cuda_stream_default with cudf::default_stream_value #11082
Conversation
…fault_stream_value
I should clarify that when cuDF is compiled with |
It looks like the gpuCI/cudf/build/cuda-arm64/11.5 build has been broken for a while?
|
I believe the CI failures are unrelated to my changes, so I am going to open this up for review. |
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.
Here are few instances of potential replacement.
cpp/src/column/column.cu:185: rmm::cuda_stream_view stream{};
cpp/src/io/utilities/hostdevice_vector.hpp:164: rmm::cuda_stream_view stream{};
cpp/src/io/csv/reader_impl.cu:91: selected_rows_offsets(rmm::cuda_stream_view stream) : all{0, stream}, selected{all} {}
cpp/tests/column/column_device_view_test.cu:39: rmm::cuda_stream_view stream{};
cpp/tests/column/column_device_view_test.cu:57: rmm::cuda_stream_view stream{};
cpp/tests/table/experimental_row_operator_tests.cu:53: rmm::cuda_stream_view stream{};
cpp/tests/table/experimental_row_operator_tests.cu:76: rmm::cuda_stream_view stream{};
cpp/tests/table/experimental_row_operator_tests.cu:101: rmm::cuda_stream_view stream{};
cpp/tests/table/experimental_row_operator_tests.cu:125: rmm::cuda_stream_view stream{};
cpp/tests/table/table_view_tests.cu:45: rmm::cuda_stream_view stream{};
cpp/include/cudf/column/column.hpp:182: rmm::cuda_stream_view stream = rmm::cuda_stream_view{});
cpp/benchmarks/synchronization/synchronization.hpp:36: rmm::cuda_stream_view stream{}; // default stream, could be another stream
Also, unused stream member in cpp/src/transform/row_bit_count.cu:164
Could we patch rmm locally to throw if a stream view of a default stream is created and run tests? Looks like it's easy to miss a few when checking manually. |
Codecov Report
@@ Coverage Diff @@
## branch-22.08 #11082 +/- ##
===============================================
Coverage ? 86.34%
===============================================
Files ? 144
Lines ? 22729
Branches ? 0
===============================================
Hits ? 19625
Misses ? 3104
Partials ? 0 Continue to review full report at Codecov.
|
This change is huge. Assuming that there are a lot of other PRs that are under review, I wonder if after merging this PR then after the pending PRs are merged some will reverse back this result. It is ideal to merge this lastly, after all other PRs, right before code freeze. |
Thanks for the comment @ttnghia. We actually put off doing this fully at the end of the 22.06 sprint, and instead only put in the changes needed to fix nvcomp (#10877). I didn't want to make such a huge change at the end of the sprint. Even though the change is low risk, there is still a chance to introduce bugs. |
Thanks for the suggestion @vuule. I will try this. |
rerun tests |
Rerun tests. |
@karthikeyann I made the changes you requested. Thanks again for the review! |
Thanks @karthikeyann, @nvdbaranec, @ttnghia and @vuule for the reviews! Can someone please merge this for me? |
@gpucibot merge |
Closes #10864.
Also closes #9614.
This PR is a follow-up to #10877. It replaces all of the remaining instances of
rmm::cuda_stream_default
withcudf::default_stream_value
.There are a lot of replacements and addition of includes, along with some reformatting due to clang-format, but like #10877, there should be no noticeable functional change here.