Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
smpirun: don't use the ARGS variable, that may be used by others
[simgrid.git] / src / smpi / colls / bcast-NTSL-Isend.c
index 5a3db64fc81aa8115e225cde899982756ca851bf..cb1e007423756f74a02516bb9b8c024ee243ab34 100644 (file)
@@ -35,7 +35,7 @@ int smpi_coll_tuned_bcast_NTSL_Isend(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;