MPI_Cart_map functie
Hiermee wordt proces toegewezen aan cartesische topologiegegevens.
Syntaxis
int MPIAPI MPI_Cart_map(
_In_ MPI_Comm comm,
_In_range_(>=, 0) int ndims,
_In_count_(ndims) int *dims,
_In_count_(ndims) int *periods,
_Out_ int *newrank
);
Parameters
Comm
Communicator voor invoer.ndims
Aantal dimensies van cartesische structuur.Dims
Matrix van grootte-ndimen met een geheel getal dat het aantal processen in elke coördinaatrichting aangeeft.Perioden
Logische matrix van grootteweergaven die de periodiciteitsspecificatie in elke coördinaatrichting specificeren.newrank [uit]
rangorde van het oproepproces opnieuw gerangschikt; MPI_UNDEFINED als het aanroepen van het proces niet tot het raster behoort
Retourwaarde
Retourneert MPI_SUCCESS bij succes. Anders is de retourwaarde een foutcode.
In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .
Fortran
MPI_CART_MAP(COMM, NDIMS, DIMS, PERIODS, NEWRANK, IERROR)
INTEGER COMM, NDIMS, DIMS(*), NEWRANK, IERROR
LOGICAL PERIODS(*)
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 |