/* selector with default/naive Simgrid algorithms. These should not be trusted for performance evaluations */
-/* Copyright (c) 2009-2010, 2013-2014. The SimGrid Team.
+/* Copyright (c) 2009-2010, 2013-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "colls_private.h"
+#include "src/smpi/smpi_process.hpp"
namespace simgrid{
namespace smpi{
int rank = comm->rank();
int size = comm->size();
//non commutative case, use a working algo from openmpi
- if(op != MPI_OP_NULL && !op->is_commutative()){
+ if (op != MPI_OP_NULL && not op->is_commutative()) {
return Coll_reduce_ompi_basic_linear::reduce(sendtmpbuf, recvbuf, count, datatype, op, root, comm);
}
int index = 0;
for (int src = 0; src < size; src++) {
if (src != root) {
- if (!smpi_process_get_replaying())
+ if (not smpi_process()->replaying())
tmpbufs[index] = xbt_malloc(count * dataext);
else
tmpbufs[index] = smpi_get_tmp_sendbuffer(count * dataext);