MPI_Type_create_darray functie
Hiermee maakt u een gegevenstype dat een gedistribueerde matrix vertegenwoordigt.
Syntaxis
int MPIAPI MPI_Type_create_darray(
int size,
int rank,
int ndims,
_In_count_(ndims) int array_of_gszies[],
_In_count_(ndims) int array_of_distribs[],
_In_count_(ndims) int array_of_dargs[],
_In_count_(ndims) int array_of_psizes[],
int order,
MPI_Datatype oldtype,
_Out_ MPI_Datatype *newtype
);
Parameters
Grootte
Grootte van de procesgroep.Rang
Rangschikken in procesgroep.ndims
Het aantal matrixdimensies en de procesrasterdimensies.array_of_gszies
Het aantal elementen van het type oldtype in elke dimensie van de globale matrix.array_of_distribs
Verdeling van matrix in elke dimensie.array_of_dargs
Distributieargument in elke dimensie.array_of_psizes
Grootte van procesraster in elke dimensie.order
Vlag voor matrixopslagorder.oudtype
Oud gegevenstype.newtype [uit]
Nieuw gegevenstype.
Retourwaarde
Retourneert MPI_SUCCESS bij succes. Anders is de retourwaarde een foutcode.
In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .
Fortran
MPI_TYPE_CREATE_DARRAY(SIZE, RANK, NDIMS, ARRAY_OF_GSIZES,
ARRAY_OF_DISTRIBS, ARRAY_OF_DARGS, ARRAY_OF_PSIZES, ORDER,
OLDTYPE, NEWTYPE, IERROR)
INTEGER SIZE, RANK, NDIMS, ARRAY_OF_GSIZES(*), ARRAY_OF_DISTRIBS(*),
ARRAY_OF_DARGS(*), ARRAY_OF_PSIZES(*), ORDER, OLDTYPE, NEWTYPE, 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 |