Writing MPI programs III

Another Example (Again hello and again no messsage-passing) (hello2.c):

\includegraphics[scale=1]{figures/1-3}
Two of the first questions asked in a parallel program are:
  1. How many processes are there? Answered with MPI_Comm_size
  2. Who am I? Answered with MPI_Comm_rank. The rank is a number between zero and size-1.



Cem Ozdogan 2010-10-04