#include #include #define NUM_OF_ELEMENTS 100 #define NUM_PER_PROCESS 25 #define ROOT 0 int main (int argc, char** argv) { int myRank; int numProcs; int sendBuffer[NUM_OF_ELEMENTS]; int recvBuffer[NUM_PER_PROCESS]; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &myRank); MPI_Comm_size(MPI_COMM_WORLD, &numProcs); if (myRank == ROOT) { int i; for (i=0; i