Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile about every existing SMPI examples (reduce don't compile)
[simgrid.git] / src / smpi / sample / split.c
diff --git a/src/smpi/sample/split.c b/src/smpi/sample/split.c
deleted file mode 100644 (file)
index b161190..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <stdio.h>
-#include <mpi.h>
-
-int main(int argc, char *argv[]) {
-       int worldrank, 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);
-       MPI_Finalize();
-       return 0;
-}