Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
switch way old SMP aware algos work, to be closer to the ones from mvapich
[simgrid.git] / src / smpi / colls / bcast-NTSL.c
index c1cf563..7b8ede0 100644 (file)
@@ -35,7 +35,7 @@ int smpi_coll_tuned_bcast_NTSL(void *buf, int count, MPI_Datatype datatype,
 
   /* segment is segment size in number of elements (not bytes) */
   int segment = bcast_NTSL_segment_size_in_byte / extent;
-
+  segment =  segment == 0 ? 1 :segment; 
   /* pipeline length */
   int pipe_length = count / segment;