QUAD is intended to be a program that estimates the integral of a function f(x) from A to B, prints the result, the elapsed wallclock time, and the corresponding MegaFLOPS rate.
This directory contains only partial programs - they are just sketches of the code, and you will need to finish them, adding declarations, computational statements, and print statements. Your assignment sheet will explain how you are expected to turn the program into a working OpenMP program.
Here are "completed" versions of the programs. You can look at these if you get stuck, or want to see how I approached this problem.
You can go up one level to the OpenMP page.
Last revised on 17 October 2012.