X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1430176bca4f7627075440f1e2559be930f93fdf..863aeead864a309c494893a1b06ec33ed2b7daf1:/src/smpi/colls/bcast/bcast-scatter-LR-allgather.cpp diff --git a/src/smpi/colls/bcast/bcast-scatter-LR-allgather.cpp b/src/smpi/colls/bcast/bcast-scatter-LR-allgather.cpp index 66ac6bb0b2..3466fdf996 100644 --- a/src/smpi/colls/bcast/bcast-scatter-LR-allgather.cpp +++ b/src/smpi/colls/bcast/bcast-scatter-LR-allgather.cpp @@ -87,7 +87,7 @@ Coll_bcast_scatter_LR_allgather::bcast(void *buff, int count, nbytes = extent * count; - scatter_size = (nbytes + num_procs - 1) / num_procs; // ceiling division + scatter_size = (nbytes + num_procs - 1) / num_procs; // ceiling division curr_size = (rank == root) ? nbytes : 0; // root starts with all the data relative_rank = (rank >= root) ? rank - root : rank - root + num_procs; @@ -103,7 +103,7 @@ Coll_bcast_scatter_LR_allgather::bcast(void *buff, int count, // allows you to post a larger recv. if (recv_size <= 0) curr_size = 0; // this process doesn't receive any data - // because of uneven division + // because of uneven division else { Request::recv((char *) buff + relative_rank * scatter_size, recv_size, MPI_BYTE, src, tag, comm, &status); @@ -123,7 +123,7 @@ Coll_bcast_scatter_LR_allgather::bcast(void *buff, int count, while (mask > 0) { if (relative_rank + mask < num_procs) { send_size = curr_size - scatter_size * mask; - // mask is also the size of this process's subtree + // mask is also the size of this process's subtree if (send_size > 0) { dst = rank + mask;