Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix: forgot to properly update migration.tesh
[simgrid.git] / examples / smpi / split.c
index f451b87..bf4d3df 100644 (file)
@@ -3,13 +3,15 @@
 
 int main(int argc, char *argv[])
 {
-  int worldrank, localrank;
-  MPI_Comm localcomm;
+  int worldrank;
+//  int localrank;
+//  MPI_Comm localcomm;
   MPI_Init(&argc, &argv);
   MPI_Comm_rank(MPI_COMM_WORLD, &worldrank);
-  MPI_Comm_split(MPI_COMM_WORLD, worldrank % 2, worldrank, &localcomm);
-  MPI_Comm_rank(localcomm, &localrank);
-  printf("node with world rank %d has local rank %d\n", worldrank, localrank);
+  printf("MPI_Comm_split is not implemented\n");
+  //MPI_Comm_split(MPI_COMM_WORLD, worldrank % 2, worldrank, &localcomm);
+  //MPI_Comm_rank(localcomm, &localrank);
+  //printf("node with world rank %d has local rank %d\n", worldrank, localrank);
   MPI_Finalize();
   return 0;
 }