Docsity

SPMD Algorithm-Parallel Processing-Assignments, 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 (Marks 25)
a) Write an SPMD algorithm for matrix-vector multiplication of m x n matrix with n x 1
vector on Quard core SMP node. Assume n > p & n mod p =0.
b) Write an SPMD OpenMP parallel program for multiplication of 256 x 256 matrix with
256 x 1 vector on Quard core SMP node. 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.
Question # 3 (50)
c) 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.
d) 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-Parallel Processing-Assignments 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 (Marks 25)

a) Write an SPMD algorithm for matrix-vector multiplication of m x n matrix with n x 1 vector on Quard core SMP node. Assume n > p & n mod p =0.

b) Write an SPMD OpenMP parallel program for multiplication of 256 x 256 matrix with 256 x 1 vector on Quard core SMP node. 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.

Question # 3 (50)

c) 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.

d) 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