Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update mpich comm tests
[simgrid.git] / teshsuite / smpi / mpich3-test / comm / comm_group_half.c
index 8302b58..bd98ab3 100644 (file)
@@ -6,15 +6,14 @@
 
 #include <stdio.h>
 #include <mpi.h>
-/* USE_STRICT_MPI may be defined in mpitestconf.h */
 #include "mpitestconf.h"
 
 int main(int argc, char **argv)
 {
-    int rank, size;
+    int rank, size, i;
     MPI_Group full_group, half_group;
     int range[1][3];
-    MPI_Comm __attribute__((unused)) comm;
+    MPI_Comm comm;
 
     MPI_Init(NULL, NULL);
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
@@ -26,13 +25,11 @@ int main(int argc, char **argv)
     range[0][2] = 1;
     MPI_Group_range_incl(full_group, 1, range, &half_group);
 
-#if !defined(USE_STRICT_MPI) && defined(MPICH)
     if (rank <= size / 2) {
         MPI_Comm_create_group(MPI_COMM_WORLD, half_group, 0, &comm);
         MPI_Barrier(comm);
         MPI_Comm_free(&comm);
     }
-#endif /* USE_STRICT_MPI */
 
     MPI_Group_free(&half_group);
     MPI_Group_free(&full_group);