#include #include int main(int argc, char** argv) { // Initialize the MPI environment MPI_Init( &argc, &argv); // Get the number of processes int world_size; MPI_Comm_size(MPI_COMM_WORLD, &world_size); // Get the rank of the process int world_rank; MPI_Comm_rank(MPI_COMM_WORLD, &world_rank); printf("Inside %s : rank %d out of %d \n",argv[1],world_rank, world_size); // Finalize the MPI environment. //printf("inside B\n"); if(world_rank==0){ printf("SUCCESS!!\n"); } MPI_Finalize(); }