r/HPC • • Nov 11 '19

HPC MPI code

Hello, Im looking for some code to serve as a example of a parallelized program that would be run on a HPC in a low level language. Could anyone share some code? Can be any problem as long as it would be run on a HPC and is parallelized. This is for school project.

1 Upvotes

9 comments sorted by

6

u/dollardave Nov 11 '19

1

u/locomative999 Nov 11 '19

Thank you for the reply, im currently looking for some real life commercial code in MPI that I can study.

2

u/brimacki Nov 15 '19

Why do you care if they're commercial codes? Most commercial codes keep their source closed. The ECP Proxy Apps that another user referenced is the best collection of real-world problems being solved on an HPC and parallelized with MPI.

5

u/floobybeebop Nov 11 '19

1

u/locomative999 Nov 11 '19

Thanks! Ill check this out, however, im looking for some code in MPI that is/was for commercial use.

1

u/frozenMars Nov 11 '19

1

u/locomative999 Nov 11 '19

Thanks! Im looking for some code in MPI that is/was used for commercial/scientific purposes.

2

u/JanneJM Nov 12 '19

If you want real-life "commercial" scientific code, download the source for any open-source scientific software that uses MPI. A few examples:

NEST - Spiking neuron network simulator
MrBayes - Bayesian inference for phylogeny
GROMACS - molecular dynamics simulation

There's many others; just do a quick google search for more.

1

u/kostas_sabulis Nov 11 '19

Gadget2 is a pretty good example of MPI C code used for numerical simulations in research (astrophysics in this case). Compiles on just about anything so you shouldn't have so many problems with getting it to work. Source code, basic tutorials and initial condition files are available at authors website https://wwwmpa.mpa-garching.mpg.de/gadget/