Skip to content

Commit

Permalink
stl algorithms for host objects
Browse files Browse the repository at this point in the history
Co-authored-by: David Wendt <[email protected]>
  • Loading branch information
wence- and davidwendt authored Oct 7, 2024
1 parent 99ac7c7 commit 258aee4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/tests/reductions/reduction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <cudf/types.hpp>
#include <cudf/wrappers/timestamps.hpp>

#include <thrust/copy.h>
#include <thrust/iterator/counting_iterator.h>

#include <algorithm>
Expand Down Expand Up @@ -775,7 +774,7 @@ double calc_var(std::vector<T> const& v, int ddof, std::vector<bool> const& mask
auto const values = [&]() {
if (mask.empty()) { return v; }
std::vector<T> masked{};
thrust::copy_if(
std::copy_if(
v.begin(), v.end(), mask.begin(), std::back_inserter(masked), [](auto m) { return m; });
return masked;
}();
Expand Down

0 comments on commit 258aee4

Please sign in to comment.