________________________________________________________     Hands on Session   ________________________________________________________

 MPI Examples

 The hands-on session introduces you to algorithms involving simple programs using point-point and global communications, numerical algorithms and non-numerical algorithms. Also, special class of numerical methods to solve Partial Differential Equations have been discussed. You have to write a simple program that executes on  a Cluster. In order to make your programs more portable, you will be using the MPI (Message Passing Interface).

List of MPI Examples

1.3 List of MPI Programs in FORTRAN and C

Example 1 :  MPI program to print Hello World

Example 2 :  MPI program to find sum of n integers using MPI point-to-point blocking communication library calls

Example 3 :  MPI program to find sum of n integers on parallel computer in which processors are arranged in linear array topology using MPI point-to-point blocking communication library calls

Example 4 :  MPI program to find sum of n integers on parallel computer in which processors are arranged in ring topology using MPI point-to-point blocking communication library calls

Example 5 :  MPI program to find sum of n integers on parallel computer in which processors are arranged in binary tree topology (associative fan-in rule) using MPI point-to-point blocking communication library calls

Example 6 :  MPI program to find sum of n integers on parallel computer in which processors are arranged in binary tree topology (associative fan-in rule) using MPI point-to-point non-blocking communication library calls

Example 7 :  MPI program to compute the value of PI by Numerical Integration using MPI point-to-point library calls

Example 8 :  MPI program to scatter n integers using MPI collective communication library calls

Example 9 :  MPI program to gather n integers from p process and make the resultant gathered data (np) available on every process using collective communication library calls
gdata4, gdata5, gdata6, gdata7  or gdata.tar

Example 10 :  MPI program to find sum of n integers using MPI collective communication and computation library calls

Example 11 :  MPI program to compute value of PI by Numerical Integration using MPI collective communication library calls

Example 12 :  MPI program to construct a communicator consisting of group of diagonal processes in a square grid of processes using MPI groups library calls

Example 13 :  MPI program to compute dot product of two vectors using block-striped partitioning with uniform data distribution
Example 14 : MPI program to compute dot product of two vectors using block-striped partitioning with non-uniform data distribution
Example 15 : MPI program to compute dot product of two vectors using block -striped partitioning with cyclic data distribution
Example 16 : MPI program to compute infinity norm of a matrix using block -striped partitioning and uniform data distribution
Example 17 : MPI program to compute the Matrix and Vector Multiplication using self-scheduling algorithm
Example 18 : MPI program to compute the Matrix and Vector Multiplication using block-striped row-wise partitioning with uniform data distribution
Example 19 : MPI program to compute Matrix and Vector Multiplication using block checkerboard partitioning
Example 20 : MPI program to compute Matrix and Matrix Multiplication using self-scheduling algorithm
/  mm_mult_master_sschd.f and  mm_mult_slave_sschd.f
Example 21 : MPI program to compute Matrix and Matrix Multiplication using block checkerboard partitioning and MPI Cartesian topology
(MPI Cartesian topology)
Example 22 : MPI program to compute Matrix and Matrix Multiplication using block checkerboard partitioning and Cannon Algorithm
(Cannon Algorithm)
Example 23 : MPI program to compute Matrix and Matrix Multiplication using block checkerboard partitioning and Fox Algorithm
(Fox Algorithm)

Example 24 : MPI Parallel algorithm for solution of matrix system of linear equations by Jacobi method

Example 25 : MPI program for solution of matrix system of linear equations by Conjugate Gradient method

Example 26 : MPI program for solution of matrix system of linear equations A x = b by Gaussian Elimination method

Example 27 : MPI program for Sparse Matrix and Vector Multiplication using block-striped partitioning

Example 28 : MPI program for sorting n integers using sample sort