Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
/ 2acos0 Public archive

Calculates π using Monte Carlo technique with a variety of parallelization protocols

Notifications You must be signed in to change notification settings

wesbarnett/2acos0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

π

Calculates π using a Monte Carlo method using different parallelization libraries/protocols: serial (no parallelization), OpenMP, MPI, and coarrays.

Compilation

To compile run make.

Requirements

The MPI implementation obviously requires an MPI library like OpenMPI or MPICH.

The coarrays implementation additionally requires OpenCoarrays.

Running

To run:

./serial 1000
./omp 1000
mpiexec -n 4 ./mpi 1000
mpiexec -n 4 ./coarrays 1000

Change 1000 to the number of iterations you want to use to calculate pi.

About

Calculates π using Monte Carlo technique with a variety of parallelization protocols

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published