Regular Grid Example:Getting the Decomposition
int size, dims[2], periods[2];
MPI_Comm_size( MPI_COMM_WORLD, &size );
MPI_Dims_create( size, 2, dims );
periods[0] = periods[1] = 0;
MPI_Cart_create( MPI_COMM_WORLD, 2, dims,
periods, 1, &comm2d );
Previous slide
Next slide
Back to first slide
View graphic version