Basic HTML version of Foils prepared 19 September 98

Foil 27 MPI_Comm_rank -- Environment Inquiry

From MPI Message Passing Interface Computational Science for Simulations -- Fall Semester 1998. by Geoffrey C. Fox, Nancy McCracken


1 This allows you to identify each process by a unique integer called the rank which runs from 0 to N-1 where there are N processes
2 If we divide the region 0 to 1 by domain decomposition into N parts, the process with rank r controls
  • subregion covering r/N to (r+1)/N
  • for C:int MPI_Comm_rank(MPI_Comm comm, int *rank)
    • comm is an MPI communicator of type MPI_Comm
  • for FORTRAN: call MPI_COMM_RANK (comm, rank, mpierr)

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