#include<mpi.h>
#include<stdio.h>
int main(int argc,char *argv[ ])
{
int size,myrank;
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD,&size);
MPI_Comm_rank(MPI_COMM_WORLD,&myrank);
printf("Process %d of %d, Hello World\n",myrank
,size
); MPI_Finalize();
return 0;
}
I2luY2x1ZGU8bXBpLmg+CiNpbmNsdWRlPHN0ZGlvLmg+CmludCBtYWluKGludCBhcmdjLGNoYXIgKmFyZ3ZbIF0pCnsKaW50IHNpemUsbXlyYW5rOwpNUElfSW5pdCgmYXJnYywmYXJndik7Ck1QSV9Db21tX3NpemUoTVBJX0NPTU1fV09STEQsJnNpemUpOwpNUElfQ29tbV9yYW5rKE1QSV9DT01NX1dPUkxELCZteXJhbmspOwpwcmludGYoIlByb2Nlc3MgJWQgb2YgJWQsIEhlbGxvIFdvcmxkXG4iLG15cmFuayxzaXplKTsKTVBJX0ZpbmFsaXplKCk7CnJldHVybiAwOwp9