#include #include #include "stdlib.h" /* tests passive target RMA on 2 processes */ #define SIZE1 100 #define SIZE2 10000 int main(int argc, char *argv[]) { int rank, nprocs, B[SIZE1], i,j; MPI_Win win; int errs = 0; float one=1.0; MPI_Init(&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&nprocs); MPI_Comm_rank(MPI_COMM_WORLD,&rank); if (nprocs != 2) { printf("Run this program with 2 processes\n");fflush(stdout); MPI_Abort(MPI_COMM_WORLD,1); } if (rank == 0) { for (i=0; i