MPIX_Comm_dims_create

Creates a division of processors within a given communicator in a Cartesian grid

Synopsis

int MPIX_Comm_dims_create(MPI_Comm comm, int nnodes, int ndims, int dims[])

Input Parameters

comm
Communicator (handle)
nnodes
number of nodes in a grid (integer)
ndims
number of Cartesian dimensions (integer)

Input/Output Parameters

dims
integer array of size ndims specifying the number of nodes in each dimension. All entries (for ndims) are filled in; unlike MPI_Dims_create, values in dims do not set the size for that dimension.

Notes

Unlike MPI_Dims_create, this is a collective routine over comm. This permits the implementation to perform collective communication operations to determine good decompositions.