topoNodeEnumeration
Return a numbering of the nodes and the ranks of the processes on the same node
Synopsis
int topoNodeEnumeration(topoinfo_t *topo, int *numnodes, int *mynodenum,
int *nranks, int noderanks[])
Input Parameter
- topo
- Pointer to topoinfo that was returned by topoInit.
Input/Output Parameter
- nranks
- On input, the size of noderanks. On output, the number of
processes on this node (including the calling process)
Output Parameters
- numnodes
- Number of nodes available
- mynodenum
- Number of the node on which this process is running
- noderanks
- Ranks, in MPI_COMM_WORLD, of processes on the same node as the
calling process. In the value of *nranks on input is less than the
total number of ranks, only the first *nranks values are returned, and
*nranks is set to the total number of ranks.
Return value
Notes