Delen via


MPI_File_preallocate functie

De opslagruimte voor een bestand wordt vooraf toegewezen.

Syntaxis

int MPIAPI MPI_File_preallocate(
   MPI_File   file,
   MPI_Offset size
);

Parameters

  • Bestand
    Bestandsingang.

  • Grootte
    Grootte die vooraf moet worden toegewezen.

Retourwaarde

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

In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .

Fortran

    MPI_FILE_PREALLOCATE(FH, SIZE, IERROR)
        INTEGER FH, IERROR
        INTEGER(KIND=MPI_OFFSET_KIND) SIZE

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-bestandsfuncties