UPC Examples
These example codes illustrate UPC by calculating pi by a) using a simple quadrature rule in parallel and b) approximating the area of a circle of radius 1, computing random points in [0,1]x[1,0] and discovering what fraction of them are in the circle, giving pi/4.
Pople and salk
The example files are:
- upc.job, the script file.
- cpi.upc, source code for calculating pi by quadrature rule
- mcpi.upc, source code for approximating pi with ranmdom points in a circle
- upc.out, stdout and stderr from the job
BigBen
The example files are: