Just include the mpi header file to the user program (C, C++ or FORTRAN).
#include<mpi.h>
or
INCLUDE 'mpif.h'
MPI is large due to functionality and Performance options, but small because many parallel programs can be written with 6 basic functions.
1. MPI_INIT (MPI_INIT_THREAD)
2. MPI_COMM_SIZE
3. MPI_COMM_RANK
4. MPI_SEND
5. MPI_RECV
6. MPI_FINALIZE
____________________________________________
For more details, please visit MPI Forum