X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/004b932fe967a47a2ded3795af9dc069c3de9671..0bb767878b9cec002756d922fc6c68ba9f606f6f:/src/smpi/colls/allreduce-smp-binomial-pipeline.cpp diff --git a/src/smpi/colls/allreduce-smp-binomial-pipeline.cpp b/src/smpi/colls/allreduce-smp-binomial-pipeline.cpp index efc2f27099..7c6ca812b0 100644 --- a/src/smpi/colls/allreduce-smp-binomial-pipeline.cpp +++ b/src/smpi/colls/allreduce-smp-binomial-pipeline.cpp @@ -99,7 +99,7 @@ int smpi_coll_tuned_allreduce_smp_binomial_pipeline(void *send_buf, if (src < comm_size) { recv_offset = phase * pcount * extent; Request::recv(tmp_buf, pcount, dtype, src, tag, comm, &status); - smpi_op_apply(op, tmp_buf, (char *)recv_buf + recv_offset, &pcount, &dtype); + if(op!=MPI_OP_NULL) op->apply( tmp_buf, (char *)recv_buf + recv_offset, &pcount, &dtype); } } else { send_offset = phase * pcount * extent; @@ -123,7 +123,7 @@ int smpi_coll_tuned_allreduce_smp_binomial_pipeline(void *send_buf, if (src < comm_size) { recv_offset = (phase - 1) * pcount * extent; Request::recv(tmp_buf, pcount, dtype, src, tag, comm, &status); - smpi_op_apply(op, tmp_buf, (char *)recv_buf + recv_offset, &pcount, &dtype); + if(op!=MPI_OP_NULL) op->apply( tmp_buf, (char *)recv_buf + recv_offset, &pcount, &dtype); } } else { dst = (inter_rank & (~mask)) * num_core;