Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Welcome to simgrid::smpi::Op
[simgrid.git] / src / smpi / colls / allreduce-lr.cpp
index af35d43..3148836 100644 (file)
@@ -81,7 +81,7 @@ smpi_coll_tuned_allreduce_lr(void *sbuf, void *rbuf, int rcount,
                  ((rank + size - 1) % size), tag + i, comm, &status);
 
     // compute result to rbuf+recv_offset
-    smpi_op_apply(op, (char *) sbuf + recv_offset, (char *) rbuf + recv_offset,
+    if(op!=MPI_OP_NULL) op->apply( (char *) sbuf + recv_offset, (char *) rbuf + recv_offset,
                    &count, &dtype);
   }