MPI Implementation in Python

A sample application that calculates the area under a curve using the trapezoidal rule given a list of coordinates. It uses processors to calculate partial solutions of the calculations and sent to a single process that sums the partials.

Pre-requisites

  • Local installation of MPI
  • Local installation of python
  • Preffered choice of an editor (pycharm, vscode, jupyter notebook)
  • Running the solution

    mpiexec -n 6 python -m mpi4py {name of the file}