#include "mpi.h" #include "stdio.h" int main(int argc, char *argv[]) { int numprocs, myrank; MPI_Init(&argc,&argv); MPI_Comm_size( MPI_COMM_WORLD, &numprocs ); MPI_Comm_rank( MPI_COMM_WORLD, &myrank ); printf("Hello world! I'm node %d of %d allocated nodes \n", myrank, numprocs); MPI_Finalize(); return 0; }