Skip to content

Parallelization boilerplate code for C++, Python & Fortran πŸŽοΈπŸ’¨

License

Notifications You must be signed in to change notification settings

prOttonicFusion/MPI-boilerplates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MPI-boilerplates

Boilerplate code for creating parallel programs in a few different languages using MPI. The commands listed below are from the MPICH implementation of MPI, but Open MPI should also work fine. If using Open MPI, one should replace mpicxx with mpic++.

C++

Compilation:

mpicxx MPI_boilerplate.cpp -o MPI_program

Execution (on 4 processors):

mpiexec -n 4 MPI_program

Python

Execution (on 4 processors):

mpiexec -n 4 python MPI_boilerplate.py

Fortran

Compilation:

mpifort MPI_boilerplate.f90 -o MPI_program

Execution (on 4 processors):

mpiexec -n 4 MPI_program

About

Parallelization boilerplate code for C++, Python & Fortran πŸŽοΈπŸ’¨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published