Docsity

SPMD Algorithm and MPI Parallel Programming for Matrix-Vector Multiplication, Exercises of Parallel Computing and Programming

Toggle sidebar
bg1
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.
docsity.com

Partial preview of the text

Download SPMD Algorithm and MPI Parallel Programming for Matrix-Vector Multiplication and more Exercises Parallel Computing and Programming in PDF only on Docsity!

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.

docsity.com