                 #include <stdio.h>
#include "mpi.h"

int main(argc,argv)
int argc;
char *argv[];
{
   int nproc, iproc;
   char proc_name[MPI_MAX_PROCESSOR_NAME];
   int nameLength;
   MPI_Init(&argc,&argv);

MPI_Comm_size(MPI_COMM_WORLD,&nproc);
   MPI_Comm_rank(MPI_COMM_WORLD,&iproc);
   MPI_Get_processor_name (proc_name,&nameLength);

printf("Hello world, I am host %s with rank %d of %d\n",
     proc_name, iproc, nproc);
MPI_Finalize ();
}