Questions about mpi_reduce of GROOPS code #178
Answered
by
tmayerguerr
FFFFFG-IGG
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
tmayerguerr
Apr 13, 2023
Replies: 1 comment 1 reply
-
Hi,
So the result after reduceSum and broadCast is
Unused/disabled receivers have the value 0. regards |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FFFFFG-IGG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The receivers are distributed to the nodes. For example, receiver 0 on node 0, receiver 1 on node 1, and so on. However, the processes do not know on which node the other receivers are. This information is distributed with recvProcess.
In the first loop, the number is only set on the node of the receiver (
if(recv->isMyRank())
), on all others the value remains 0:So the result after reduceSum and broadCast is
Unused/…