HTML version of Scripted Foils prepared 29 December 1996

Foil 24 Cartesian Topology in MPI -- General

From CPS615-Linear Programming and Whirlwind Full Matrix Discussion Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 5 Decemr 96. by Geoffrey C. Fox *
Secs 129.6
1 Under the new MPI cartesian topology, there are two functions which convert between the logical process coordinates, such as [i,j] in our 2D topology, to the (possibly new) 1D topolgy rank number required by the send and receive functions.
2 MPI_CART_COORDS(comm2d, myrank, 2, coords)
3 Takes a processor number myrank, in a 2 dim communicator called comm2d, and returns the 2 element vector cooresponding to the [i,j] position of this processor in the new system.
4 MPI_CART_RANK(comm2d, [i,j], myrank)
5 Takes a 2 element int array with logical process coordinates i and j and returns a 1D processor rank in the variable myrank.

Table Font Size


© 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 Thu Aug 14 1997