Delen via


MPI_Pack_size functie

Retourneert de bovengrens van de hoeveelheid ruimte die nodig is om een bericht in te pakken.

Syntaxis

int MPIAPI MPI_Pack_size(
        int          incount,
        MPI_Datatype datatype,
        MPI_Comm     comm,
  _Out_ int          *size
);

Parameters

  • incount
    Argument tellen om aanroep in te pakken.

  • Datatype
    Argument gegevenstype voor inpakoproep.

  • Comm
    Communicator-argument voor inpakoproep.

  • grootte [uit]
    Bovengrens voor de grootte van het ingepakte bericht, in bytes.

Retourwaarde

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

In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .

Fortran

    MPI_PACK_SIZE(INCOUNT, DATATYPE, COMM, SIZE, IERROR)
        INTEGER INCOUNT, DATATYPE, COMM, SIZE, 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-gegevenstypefuncties