Delen via


MPI_Comm_connect functie

Een aanvraag indienen om een nieuwe intercommunicator te vormen.

Syntaxis

int MPIAPI MPI_Comm_connect(
  _In_  char     *port_name,
        MPI_Info info,
        int      root,
        MPI_Comm comm,
  _Out_ MPI_Comm *newcomm
);

Parameters

  • port_name [in]
    Netwerkadres, alleen gebruikt in de hoofdmap.

  • Info
    Implementatieafhankelijke informatie.

  • Root
    Rangschik in comm van hoofdknooppunt.

  • Comm
    Intracommunicator over welke oproep collectief is.

  • newcomm [out]
    Intercommunicator met server als externe groep.

Retourwaarde

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

In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .

Fortran

    MPI_COMM_CONNECT(PORT_NAME, INFO, ROOT, COMM, NEWCOMM, IERROR)
        CHARACTER*(*) PORT_NAME
        INTEGER INFO, ROOT, COMM, NEWCOMM, 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-procesbeheerfuncties