#include "mpi.h"
#include <stdio.h>
int main( argc, argv )
int argc;
char **argv;
{
MPI_Init( &argc, &argv );
printf( "Hello world\n" );
MPI_Finalize();
return 0;
}
#include "mpi.h"provides basic MPI definitions and types.
MPI_Initstarts MPI.
MPI_Finalizeexits MPI.
printfrun on each process.