MPI Hands-On; Collective Communications I

  1. Broadcasting an integer value to all of the MPI processes, A program http://siber.cankaya.edu.tr/ozdogan/ParallelComputing/cfiles/code13.c code13.c that reads an integer value from the terminal and distributes the value to all of the MPI processes.
  2. Broadcasting the name of the master process, A program (http://siber.cankaya.edu.tr/ozdogan/ParallelComputing/cfiles/code12.c code12.c) that first broadcasts the name of the master process then each nodes send hello messages to master node.
  3. Exercise: Computation of PI number as an example. This example (http://siber.cankaya.edu.tr/ozdogan/ParallelComputing/cfiles/code15.c code15.c) evaluates $ \pi$ by numerically evaluating the integral

    $\displaystyle \int_0^1\frac{1}{1+x^2}dx=\frac{\pi}{4}
$

Cem Ozdogan 2010-12-27