CS475 Fall 2008 - HW 1

Parallel MPI Program to Compute the Value of Pi


Objectives

The objective of this lab is to write your first MPI program, to debug and test it, and to experimentally determine the gains you get in running it in parallel on up to 16 processors (two nodes on bassi).

Problem Statement

This lab is to be performed on bassi.nersc.gov. The Lab Schedule has instructions that explain how to start working with the NERSC environment in general and bassi in particular.

Exercise 4.11 in the text describes how the value of Pi can be computed by evaluating a definite integral. Your main assignment is to solve Problem 4.11. That is, turn in a correct working program that computes Pi using the rectangle rule. You should also address 4.11 (b) relaing to the performance of your parallel program on a varying number of processors and report that in your lab report.

Your code should conform to the following:

Extra Credit: Implement a block distribution of computations to processors.

What/When/How to Submit:

Good luck and have fun!


Last Modified: 9/10/2008