QUAD
An MPI program to estimate an integral


QUAD is a program which estimates an integral over [0,1].

A typical approach would be to divide the interval [0,1] into P subintervals, and have each process produce an estimate for its subinterval.

This program, instead, takes N evenly spaced values in [0,1], and then assigns them in alternating order to the processes. If there were two processes, then process 0 would be getting all the odd numbered points, and process 1 the evens, for instance.


Source Code:

Script for Execution on the FSU HPC Cluster:

Before using MPI on the FSU_HPC cluster, you must first set up the appropriate environment. You can do this by typing

        source /usr/local/profile.d/openmpi-gnu.sh
      

Once you have set up the environment, you should compile your program, using one of the following:

to create your executable program. Now you can use the msub command to submit a script to run your program.


Last revised on 21 October 2011.