Exchange Data Between MPI processes (halo)
Given the following scenario, I have N MPI processes each with an object. when the communication stage comes, data "usually small" from these object will be exchanged. In general, there is data exchange between any two nodes. What is the best strategy?: In any node X, create tow buffers for each other node with a connection with this node X. and then do send/receive on peer-to-peer basis. in Each node X, create one buffer to gather all the halo data to be communicated. and then "bcast" that buffer. Is there any other strategy I am not aware of? For nearest neighbour style halo swaps, usually