#include #include #define SEND_SIZE 2 int main(int argc,char ** argv) { int size,rank; int i; int a[SEND_SIZE]; int b[SEND_SIZE*3]; MPI_Init(&argc,&argv); MPI_Comm_rank(MPI_COMM_WORLD,&rank); MPI_Comm_size(MPI_COMM_WORLD,&size); if (size!=3) { printf("\nThe allgather_test example should be run with 3 processes\n"); exit(0); } for (i=0;i