Skip to content

elementwise_min|max reduction op#3341

Merged
rapids-bot[bot] merged 2 commits intorapidsai:branch-23.04from
seunghwak:enh_elemwise_minmax
Mar 17, 2023
Merged

elementwise_min|max reduction op#3341
rapids-bot[bot] merged 2 commits intorapidsai:branch-23.04from
seunghwak:enh_elemwise_minmax

Conversation

@seunghwak
Copy link
Contributor

per_v_transform_reduce_incoming|outgoing_e currently supports reduction operators that can be mapped to a raft::comms reduction operator (which is based on NCCL reduction). per_v_transform_reduce_incoming|outgoing_e currently takes min|max reduction op on thrust::tuple but performs elementwise min|max. This can be confusing to users. This PR updates per_v_transform_reduce_incoming|outgoing_e to take min/max reduction operators only when the value type is scalar (otherwise static_assertion will fail). If the value type is thrust::tuple, users need to pass an elementwise min|max operator instead (this will make it clearer to the users that the primitive will perform elementwise min|max reduction).

@seunghwak seunghwak requested a review from a team as a code owner March 16, 2023 17:02
@seunghwak seunghwak added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 16, 2023
@seunghwak seunghwak self-assigned this Mar 16, 2023
@seunghwak seunghwak added this to the 23.04 milestone Mar 16, 2023
@ChuckHastings
Copy link
Collaborator

/merge

@rapids-bot rapids-bot bot merged commit ce00167 into rapidsai:branch-23.04 Mar 17, 2023
@seunghwak seunghwak deleted the enh_elemwise_minmax branch May 5, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants