MPI Hands-On; Sending and Receiving Messages II

  1. Sending in a ring. A http://siber.cankaya.edu.tr/ozdogan/ParallelComputing/cfiles/code27.c code27.c that takes data from process zero and sends it to all of the other processes by sending it in a ring.

  2. The http://siber.cankaya.edu.tr/ozdogan/ParallelComputing/cfiles/code3.c code3.c consists of one receiver process and N-1 sender processes.

  3. Analyse the example http://siber.cankaya.edu.tr/ozdogan/ParallelComputing/cfiles/code2.c code2 for sending/receiving.

  4. Exercise: Write a complete program to make a parallel multiplication of two arrays (a and b) with the size of one million each.

    \begin{displaymath}
c=\sum_{i=1}^{1000000} a[i]*b[i]
\end{displaymath}

Cem Ozdogan 2010-10-18