#include <mpi.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main( int argc, char *argv[] )
{
  int myid, numprocs;

  MPI_Init(&argc,&argv);
  MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
  MPI_Comm_rank(MPI_COMM_WORLD,&myid);

  printf ("Hello from rank %d of %d, getpid()==%d\n", myid, numprocs, getpid());
  MPI_Finalize();
  return 0;
}
