mercredi 28 janvier 2015

Parallel Computing using MPI in C

How to implement MPI-based parallel program to approximate π using monte carlo simulation in which instead of considering the entire circle, each process should only pick random points from within its own “patch”. For instance, if p = 9 processes, then domain will be partitioned into a 3 × 3 grid. And so each process will be responsible for one patch.


How to use rand function to choose points within the patch for the process? Also, how to allocate patches to processes?





Aucun commentaire:

Enregistrer un commentaire