HOMEWORK - Due to November 5, 2010

  1. Write a program to send/receive and print out your name and age to each processors. Hints:
    char* my_name = "Cem Ozdogan";
    MPI_Send(&my_name, 11, MPI_CHAR, dest, 2, MPI_COMM_WORLD);
    MPI_Recv(&recv_my_name, 11, MPI_CHAR, 0, 2, MPI_COMM_WORLD, 
                                                      &status);
    

  2. 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-25