Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another allreduce ported
[simgrid.git] / src / smpi / colls / alltoall-simple.c
index b8c7254..dd64a1d 100644 (file)
@@ -25,8 +25,7 @@
 int smpi_coll_tuned_alltoall_simple(void *send_buff, int send_count,
                                     MPI_Datatype send_type,
                                     void *recv_buff, int recv_count,
-                                    MPI_Datatype recv_type,
-                                    MPI_Comm comm)
+                                    MPI_Datatype recv_type, MPI_Comm comm)
 {
   int i, rank, size, nreqs, err, src, dst, tag = 101;
   char *psnd;
@@ -57,8 +56,10 @@ int smpi_coll_tuned_alltoall_simple(void *send_buff, int send_count,
       free(statuses);
       return 0;
     }
-  } else
-    req = 0;
+  } else {
+    req = NULL;
+    statuses = NULL;
+  }
 
   /* simple optimization */