MPIX_NodeSubset
Create a subset of a given communicator with a specified number of nodes
Synopsis
int MPIX_NodeSubset(MPI_Comm incomm, MPI_Comm leadercomm, MPI_Comm nodecomm,
int nnodes, MPI_Comm *outcommPtr)
Input Parameters
- incomm
- Communicator from which to form the subset
- leadercomm
- Communicator of node leaders for incomm
- nodecomm
- Communicator of processes on this node
- nnodes
- Number of nodes to retain in the subset
Output Parameter
- outcommPtr
- Pointer to the created subset communicator.
Notes
Given an incomm, with leadercomm of the nodes and nodecomm for the
processes on the same node as the calling process, create a subset
communicator with nnodes nodes.