MPI_Graph_map function
Maps process to graph topology information.
Syntax
int MPIAPI MPI_Graph_map(
MPI_Comm comm,
int nnodes,
_In_count_(nnodes) int *index,
_In_ int *edges,
_Out_ int *newrank
);
Parameters
comm
Input communicator.nnodes
Number of graph nodes.index
Integer array specifying the graph structure.edges [in]
Integer array specifying the graph structure.newrank [out]
Reordered rank of the calling process; MPI_UNDEFINED if the calling process does not belong to graph.
Return value
Returns MPI_SUCCESS on success. Otherwise, the return value is an error code.
In Fortran, the return value is stored in the IERROR parameter.
Fortran
MPI_GRAPH_MAP(COMM, NNODES, INDEX, EDGES, NEWRANK, IERROR)
INTEGER COMM, NNODES, INDEX(*), EDGES(*), NEWRANK, IERROR
Requirements
Product |
HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package or HPC Pack 2008 Client Utilities |
Header |
Mpi.h; Mpif.h |
Library |
Msmpi.lib |
DLL |
Msmpi.dll |