Skip to content

All-to-all or redn+bcast #3363

Answered by epmikida
jbakosi asked this question in General
Discussion options

You must be logged in to vote

[Copied from email to the charm mailing list]

I would be shocked if indiviual redn+p2p would ever outperform a single redn+broadcast to all chares in the array. A couple points:

In over decomposition, it’s even worse than going from log(n) to n in terms of messages. For the broadcast, its log(p) where p is the number of PEs, and for the individual, it is n where n is the number of array elements. On top of that, it is also n reductions as compared to one reduction.

Lastly, I don’t even think there is going to be much if any benefit from overlap. You are serializing the sends, so one PE is initiating N reductions, which could be a very large number as you scale up. So that already adds one…

Replies: 1 comment

Comment options

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