LAM/MPI logo

MPI binding for MPI_GRAPH_MAP

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_GRAPH_MAP(comm, nnodes, index, edges, newrank)
[ IN comm] input communicator (handle)
[ IN nnodes] number of graph nodes (integer)
[ IN index] integer array specifying the graph structure, see
MPI_GRAPH_CREATE
[ IN edges] integer array specifying the graph structure
[ OUT newrank] reordered rank of the calling process; MPI_UNDEFINED if the calling process does not belong to graph (integer)


C Binding

int MPI_Graph_map(MPI_Comm comm, int nnodes, int *index, int *edges, int *newrank)

FORTRAN Binding

MPI_GRAPH_MAP(COMM, NNODES, INDEX, EDGES, NEWRANK, IERROR)
INTEGER COMM, NNODES, INDEX(*), EDGES(*), NEWRANK, IERROR

C++ Binding
(in the MPI:: namespace)

int Graphcomm::Map(int nnodes, const int index[], const int edges[]) const