cps home works

In this homework the value of PI is calculated using Monte Carlo method.
Two versions are available:
1- The old version which uses point to point communication.
2- The modified version which uses collective communication.
The collective communication version (using MPI_Gather) is twice as fast as the the point to point communication version. This is domenstrated with the aid of the MPI_Wtime function.
_ The codes are currently present in my npac account under subdirectory "hw6" with the original version "hw6.c" and the modified version "hw66.c"

The source codes:
HW6 old version
HW6 new version