topodistNodeCommInfo

Provide some information about off-node communication

Synopsis

int topodistNodeCommInfo(topodist_t *td, MPI_Comm comm,
                       int *partnerOnNode, int *partnerOffNode,
                       MPI_Comm *nodecomm_p, int *totalOffNode)

Input Parameters

td
Topodist information returned by topodistInit
comm
Communicator of processes to use. This routine is collective over this communicator. The most common choice of comm is MPI_COMM_WORLD

Output Parameters

partnerOnNode
Number of processes that this process communicates with that are on the same node
partnerOffNode
As above, but for partners that are off node
nodecomm_p
A communicator containing only the processes that share the node with the calling process.
totalOffNode
The total number of processes on this node that are communicating to one or more processes on a different node