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:
MPI_Graph_get( comm, maxindex, maxedges, index, edges )
Input Parameter:
comm - Kommunikator mit Graphtopologie (handle)
maxindex - Größe des Indexfeldes im rufenden Programm (integer)
maxedges - Größe des Feldes edges im rufenden Programm (integer)
Output Parameter:
index - das Feld index, mit dem die Topologie erzeugt wurde (array of
integer)
Nähere Erklärungen siehe MPI_Graph_create.
edges - das Feld edges, mit dem die Topologie erzeugt wurde (array of
integer)
siehe ebenfalls Erläuterungen zu MPI_Graph_create
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