Basic HTML version of Foils prepared August 29 98

Foil 38 Regular Grid Example: Getting the Decomposition

From Designing and Building Parallel Programs 3: MPI Message Passing System DoD Modernization Tutorial -- 1995-1998. by Ian Foster, Gina Goff, Ehtesham Hayder, Chuck Koelbel


1 int size, dims[2], periods[2];
2 MPI_Comm_size( MPI_COMM_WORLD, &size );
3 MPI_Dims_create( size, 2, dims );
4 periods[0] = periods[1] = 0;
5 MPI_Cart_create( MPI_COMM_WORLD, 2, dims,
6 periods, 1, &comm2d );

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 11 1999