#include<stdio.h>#include"mpi.h"intmain(int argc,char*argv[]){
int myid, numprocs;int namelen;char processor_name[MPI_MAX_PROCESSOR_NAME];/* INIT */MPI_Init(&argc,&argv);/* GET ID */MPI_Comm_rank(MPI_COMM_WORLD,&myid);/* GET SIZE */MPI_Comm_size(MPI_COMM_WORLD,&