Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
avoid warning by checking index in the right order
authorAugustin Degomme <augustin.degomme@imag.fr>
Thu, 21 Aug 2014 07:55:20 +0000 (09:55 +0200)
committerAugustin Degomme <augustin.degomme@imag.fr>
Thu, 21 Aug 2014 07:55:20 +0000 (09:55 +0200)
src/smpi/colls/smpi_intel_mpi_selector.c

index e2fbbe9..8e36b69 100644 (file)
@@ -2278,8 +2278,8 @@ ret smpi_coll_tuned_ ## cat ## _impi (COLL_UNPAREN args)\
     if (smpi_comm_is_uniform(comm)) {\
         local_size = smpi_comm_size(smpi_comm_get_intra_comm(comm));\
     }\
     if (smpi_comm_is_uniform(comm)) {\
         local_size = smpi_comm_size(smpi_comm_get_intra_comm(comm));\
     }\
-    while(local_size!=intel_ ## cat ## _table[i].ppn\
-        && i < INTEL_MAX_NB_PPN)\
+    while(i < INTEL_MAX_NB_PPN &&\
+    local_size!=intel_ ## cat ## _table[i].ppn)\
       i++;\
     if(i==INTEL_MAX_NB_PPN) i=0;\
     while(comm_size>intel_ ## cat ## _table[i].elems[j].max_num_proc\
       i++;\
     if(i==INTEL_MAX_NB_PPN) i=0;\
     while(comm_size>intel_ ## cat ## _table[i].elems[j].max_num_proc\