Skip to content

Question regarding subgroup inclusive_add and block_dim #7485

Answered by bobcao3
ffwqo asked this question in Q&A
Discussion options

You must be logged in to vote

For your case, you should use reduce_add because that does a All->One reduction and stores the sum in every thread. Then you can use elect.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ffwqo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants