Funktionsübersicht . . Virtuelle Topologien

Hilfesystem für den Message Passing Interface Standard MPI


MPI_Cart_get

Liefert die Topologieinformation, mit welcher eine kartesische Topologie erzeugt wurde

Syntax:

Input Parameter:

Output Parameter:

Aufruf:

#include "mpi.h"

    int       maxdims;
    int       *dims, *periods, *coord;
    MPI_Comm  comm;

    ...
    MPI_Cartdim_get( comm, &maxdims);
    dims   =(int *)malloc( maxdims*sizeof(int));
    periods=(int *)malloc( maxdims*sizeof(int));
    coords =(int *)malloc( maxdims*sizeof(int));
    MPI_Cart_get( comm, maxdims, dims, periods, coords);
    ...

Beispiel