MPI_Graph_get function - Message Passing Interface (original) (raw)
Retrieves graph topology information associated with a communicator.
Syntax
int MPIAPI MPI_Graph_get(
MPI_Comm comm,
int maxindex,
int maxedges,
_Out_cap_(maxindex) int *index,
_Out_cap_(maxindex) int *edges
);
Parameters
- comm
Communicator with graph structure. - maxindex
Length of the index vector in the calling program. - maxedges
Length of the edges vector in the calling program. - index
Array of integers containing the graph structure. - edges
Array of integers containing the graph structure.
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_GET(COMM, MAXINDEX, MAXEDGES, INDEX, EDGES, IERROR)
INTEGER COMM, MAXINDEX, MAXEDGES, INDEX(*), EDGES(*), 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 |