r/HPC • u/locomative999 • 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.
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/
6
u/dollardave Nov 11 '19
So an MPI version of Hello World?
https://www.open-mpi.org/papers/workshop-2006/hello.c