Delen via


MPI_Graph_neighbors functie

Retourneert de buren van een knooppunt dat is gekoppeld aan een grafiektopologie.

Syntaxis

int MPIAPI MPI_Graph_neighbors(
   MPI_Comm                    comm,
   int                         rank,
   int                         maxneighbors,
   _Out_cap_(maxneighbors) int *neighbors
);

Parameters

  • Comm
    Communicator met grafiektopologie.

  • Rang
    Rang van proces in groep van comm.

  • maxneighbors
    Grootte van matrix-buren.

  • Buren
    Rangschikkingen van processen die buren zijn van het opgegeven proces.

Retourwaarde

Retourneert MPI_SUCCESS bij succes. Anders is de retourwaarde een foutcode.

In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .

Fortran

    MPI_GRAPH_NEIGHBORS(COMM, RANK, MAXNEIGHBORS, NEIGHBORS, IERROR)
        INTEGER COMM, RANK, MAXNEIGHBORS, NEIGHBORS(*), IERROR

Vereisten

Product

HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package of HPC Pack 2008 Client Utilities

Header

Mpi.h; Mpif.h

Bibliotheek

Msmpi.lib

DLL

Msmpi.dll

Zie ook

MpI-procestopologiefuncties