From 9383a09d025798a97b924514c63d0269ce970198 Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Thu, 23 Jan 2025 13:23:39 +0100 Subject: [PATCH] Use `cuda::std::max` instead of `thrust::max` --- cpp/src/traversal/extract_bfs_paths_impl.cuh | 3 ++- cpp/tests/utilities/check_utilities.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/src/traversal/extract_bfs_paths_impl.cuh b/cpp/src/traversal/extract_bfs_paths_impl.cuh index d228460bec..dbd2f6f175 100644 --- a/cpp/src/traversal/extract_bfs_paths_impl.cuh +++ b/cpp/src/traversal/extract_bfs_paths_impl.cuh @@ -30,6 +30,7 @@ #include +#include #include #include #include @@ -52,7 +53,7 @@ template struct compute_max { vertex_t __device__ operator()(vertex_t lhs, vertex_t rhs) { - return thrust::max(lhs, rhs); + return cuda::std::max(lhs, rhs); } }; diff --git a/cpp/tests/utilities/check_utilities.hpp b/cpp/tests/utilities/check_utilities.hpp index a22d95c87d..6974d14be0 100644 --- a/cpp/tests/utilities/check_utilities.hpp +++ b/cpp/tests/utilities/check_utilities.hpp @@ -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); } };