Skip to content

Commit

Permalink
Multi-GPU reduce_v & transform_reduce_v bug fix. (rapidsai#2269)
Browse files Browse the repository at this point in the history
Authors:
  - Seunghwa Kang (https://github.com/seunghwak)

Approvers:
  - Chuck Hastings (https://github.com/ChuckHastings)

URL: rapidsai#2269
  • Loading branch information
seunghwak authored May 13, 2022
1 parent 916dc5c commit ee3c434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/include/cugraph/prims/reduce_op.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct minimum {
using type = T;
static constexpr bool pure_function = true; // this can be called in any process
static constexpr raft::comms::op_t compatible_raft_comms_op = raft::comms::op_t::MIN;
inline static T const identity_element = min_identity_element<T>();
inline static T const identity_element = max_identity_element<T>();

__host__ __device__ T operator()(T const& lhs, T const& rhs) const
{
Expand All @@ -82,7 +82,7 @@ struct maximum {
using type = T;
static constexpr bool pure_function = true; // this can be called in any process
static constexpr raft::comms::op_t compatible_raft_comms_op = raft::comms::op_t::MAX;
inline static T const identity_element = max_identity_element<T>();
inline static T const identity_element = min_identity_element<T>();

__host__ __device__ T operator()(T const& lhs, T const& rhs) const
{
Expand Down

0 comments on commit ee3c434

Please sign in to comment.