-
Notifications
You must be signed in to change notification settings - Fork 853
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
Refactor thrust_copy_if
into cudf::detail::copy_if_safe
#12455
Conversation
Codecov ReportBase: 86.58% // Head: 85.71% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-23.02 #12455 +/- ##
================================================
- Coverage 86.58% 85.71% -0.87%
================================================
Files 155 155
Lines 24368 24798 +430
================================================
+ Hits 21098 21255 +157
- Misses 3270 3543 +273
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View 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.
LGTM
Thanks!
There is already a function named cudf/cpp/include/cudf/detail/copy_if.cuh Line 323 in 8a1ff58
Perhaps this function needs a different name? |
I thought about that too but didn't have a very good candidate name. How about |
We usually use |
Then let's use |
thrust_copy_if
into cudf::detail::copy_if
thrust_copy_if
into cudf::detail::copy_if_safe
@gpucibot merge |
This extracts
thrust_copy_if
out ofjson_tree.cu
and puts it intocudf/detail/utilities/algorithm.cuh
with a new namecudf::detail::copy_if_safe
. Such utility is useful not just for use injson_tree.cu
but potentially in many other places. The next immediate use case will be to implementfrom_json
in NVIDIA/spark-rapids-jni#844.This also changes the work in #12079 to adopt the new function
cudf::detail::copy_if_safe
.