#include #include using namespace std; int main(int argc, char * argv[]) { MPI_Init(&argc, &argv); int size; MPI_Comm_size(MPI_COMM_WORLD, &size); int rank; MPI_Comm_rank(MPI_COMM_WORLD, &rank); cout << "Hello world from " << rank << " of " << size << "!" << endl; char buffer[MPI_MAX_PROCESSOR_NAME]; int len; MPI_Get_processor_name(buffer, &len); cout << " I am runing on " << buffer << endl; MPI_Finalize(); return 0; }