Skip to content

Commit

Permalink
Use cuda::std::max instead of thrust::max
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 23, 2025
1 parent d02f199 commit 9383a09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cpp/src/traversal/extract_bfs_paths_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include <rmm/exec_policy.hpp>

#include <cuda/std/functional>
#include <thrust/binary_search.h>
#include <thrust/count.h>
#include <thrust/distance.h>
Expand All @@ -52,7 +53,7 @@ template <typename vertex_t>
struct compute_max {
vertex_t __device__ operator()(vertex_t lhs, vertex_t rhs)
{
return thrust::max<vertex_t>(lhs, rhs);
return cuda::std::max<vertex_t>(lhs, rhs);
}
};

Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/utilities/check_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct device_nearly_equal {
bool __device__ operator()(type_t lhs, type_t rhs) const
{
return std::abs(lhs - rhs) <
cuda::std::max(thrust::max(lhs, rhs) * threshold_ratio, threshold_magnitude);
cuda::std::max(cuda::std::max(lhs, rhs) * threshold_ratio, threshold_magnitude);
}
};

Expand Down

0 comments on commit 9383a09

Please sign in to comment.