#include "mpi.h"
#include <stdio.h>
int main( argc, argv )
int argc;
char *argv[];
{
int rank, size;
MPI_Init( &argc, &argv );
MPI_Comm_rank( MPI_COMM_WORLD, &rank );
MPI_Comm_size( MPI_COMM_WORLD, &size );
printf( "I am %d of %d\n", rank
, size
); MPI_Finalize();
return 0;
})
I2luY2x1ZGUgIm1waS5oIgojaW5jbHVkZSA8c3RkaW8uaD4KaW50IG1haW4oIGFyZ2MsIGFyZ3YgKQppbnQgYXJnYzsKY2hhciAqYXJndltdOwp7CiBpbnQgcmFuaywgc2l6ZTsKIE1QSV9Jbml0KCAmYXJnYywgJmFyZ3YgKTsKIE1QSV9Db21tX3JhbmsoIE1QSV9DT01NX1dPUkxELCAmcmFuayApOwogTVBJX0NvbW1fc2l6ZSggTVBJX0NPTU1fV09STEQsICZzaXplICk7CiBwcmludGYoICJJIGFtICVkIG9mICVkXG4iLCByYW5rLCBzaXplICk7CiBNUElfRmluYWxpemUoKTsKIHJldHVybiAwOwp9KQoK