LAM/MPI logo

MPI binding for MPI_DIMS_CREATE

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_DIMS_CREATE(nnodes, ndims, dims)
[ IN nnodes] number of nodes in a grid (integer)
[ IN ndims] number of cartesian dimensions (integer)
[ INOUT dims] integer array of size ndims specifying the number of nodes in each dimension


C Binding

int MPI_Dims_create(int nnodes, int ndims, int *dims)

FORTRAN Binding

MPI_DIMS_CREATE(NNODES, NDIMS, DIMS, IERROR)
INTEGER NNODES, NDIMS, DIMS(*), IERROR

C++ Binding
(in the MPI:: namespace)

void Compute_dims(int nnodes, int ndims, int dims[])