#include #include /* openmpi 1.2.5 by default sets the eager limit to 12288 bytes */ #define LEN 10000 #define NUM_TRIALS 1000000 int main(int argc, char **argv) { int mype; int npes; int i; int dest; char *a, *b; MPI_Status status; a = (char *) malloc(LEN); b = (char *) malloc(LEN); MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &mype); MPI_Comm_size(MPI_COMM_WORLD, &npes); printf("%d hello\n", mype); fflush(stdout); if (mype==0) { for (dest=1; dest