Funktionsübersicht . . Virtuelle Topologien

Hilfesystem für den Message Passing Interface Standard MPI


MPI_Graph_get

Liefert die Graphinformation, mit welcher eine Graphtopologie erzeugt wurde

Syntax:

Input Parameter:

Output Parameter:

Aufruf:

#include "mpi.h"

    int       maxindex, maxedges;
    int       *index, *edges;
    MPI_Comm  comm;

    ...
    MPI_Graphdims_get( comm, &maxindex, &maxedges);
    index=(int *)malloc( maxindex*sizeof(int));
    edges=(int *)malloc( maxedges*sizeof(int));
    MPI_Graph_get( comm, maxindex, maxedges, index, edges);
    ...

Beispiel