#include #include int main(int argc, char ** argv) { int size,rank; MPI_Init(&argc, &argv); // note that argc and argv are passed by address MPI_Comm_rank(MPI_COMM_WORLD,&rank); MPI_Comm_size(MPI_COMM_WORLD,&size); printf("Hello MPI! Process %d of %d\n", rank,size); MPI_Finalize(); }