#include #include #include int main(int argc,char **argv) { int ierr,i,size,rank; int cnt = 433438806; MPI_Status status; long long *cols; MPI_Init(&argc,&argv); ierr = MPI_Comm_size(MPI_COMM_WORLD,&size); ierr = MPI_Comm_rank(MPI_COMM_WORLD,&rank); if (size != 2) { fprintf(stderr,"[%d] usage: mpiexec -n 2 %s\n",rank,argv[0]); MPI_Abort(MPI_COMM_WORLD,1); } cols = malloc(cnt*sizeof(long long)); for (i=0; i