Skip to content

Commit

Permalink
Use async execution policy for true_if (#17146)
Browse files Browse the repository at this point in the history
Closes #17117

Related to #12086

This PR replaces the synchronous execution policy with an asynchronous one to eliminate unnecessary synchronization.

Authors:
  - Yunsong Wang (https://github.com/PointKernel)

Approvers:
  - David Wendt (https://github.com/davidwendt)
  - Shruti Shivakumar (https://github.com/shrshi)
  - Jason Lowe (https://github.com/jlowe)
  - Nghia Truong (https://github.com/ttnghia)

URL: #17146
  • Loading branch information
PointKernel authored Oct 23, 2024
1 parent f0c6a04 commit 02ee819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/cudf/detail/unary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ std::unique_ptr<column> true_if(InputIterator begin,
auto output_mutable_view = output->mutable_view();
auto output_data = output_mutable_view.data<bool>();

thrust::transform(rmm::exec_policy(stream), begin, end, output_data, p);
thrust::transform(rmm::exec_policy_nosync(stream), begin, end, output_data, p);

return output;
}
Expand Down

0 comments on commit 02ee819

Please sign in to comment.