All MPI Programs Contain
#include “mpi.h”
- definitions and declarations necessary for an MPI program
MPI_Init(&argc, &argv);
- allows MPI to do any needed setup
- not necessarily first call but highly recommended
- must be called before and other MPI routine
-
MPI_Finalize();
- allows MPI to clean up
- not necessarily last call but highly recommended