Skip to content

Commit

Permalink
Include a thrust header that was missing to use thrust::max
Browse files Browse the repository at this point in the history
cpp/tests/utilities/check_utilities.hpp: In member function ‘bool cugraph::test::device_nearly_equal<type_t>::operator()(type_t, type_t) const’:
cpp/tests/utilities/check_utilities.hpp:98:20: error: ‘max’ is not a member of ‘thrust’
98 | thrust::max(thrust::max(lhs, rhs) * threshold_ratio, threshold_magnitude);
| ^~~
  • Loading branch information
caugonnet committed Jan 17, 2025
1 parent a6eea2f commit 7779207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/tests/utilities/check_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <raft/core/handle.hpp>
#include <raft/core/span.hpp>
#include <thrust/extrema.h>

#include <numeric>
#include <type_traits>
Expand Down

0 comments on commit 7779207

Please sign in to comment.