1 /* Copyright (c) 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
10 int main (int argc, char **argv) {
13 char name[MPI_MAX_PROCESSOR_NAME];
16 MPI_Init(&argc, &argv);
17 MPI_Comm_size(MPI_COMM_WORLD, &size);
18 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
20 MPI_Get_processor_name(name,&len);
21 printf("rank %d is running on host %s\n", rank, name);