
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Question # 1 (Marks 50)
a) Write an SPMD algorithm for matrix-vector multiplication of m x n matrix with n x 1 vector on a p x q mesh of processors. Assume n > p & n mod p =0.
b) Write an SPMD MPI parallel program for multiplication of 1024 x 2048 matrix with 2048 x 1 vector on 4x8 mesh of processors. Write your code for 32 core CASE Cluster.
Question # 2 (50)
a) Write hybrid code using MPI among the nodes and Open MP within node to implement the matrix-vector multiplication on a mesh as in part (b) of Q#01.
b) Give parallel execution time expression of your code in part (a) of Q#02 and hence compare this time with the practical time of your program.