-/* Copyright (c) 2013-2020. The SimGrid Team.
+/* Copyright (c) 2013-2023. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include "../colls_private.hpp"
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
int
allgather__ompi_neighborexchange(const void *sbuf, int scount,
int i, even_rank;
int err = 0;
ptrdiff_t slb, rlb, sext, rext;
- char *tmpsend = NULL, *tmprecv = NULL;
+ char *tmpsend = nullptr, *tmprecv = nullptr;
size = comm->size();
rank = comm->rank();
if (size % 2) {
- XBT_DEBUG(
- "coll:tuned:allgather_intra_neighborexchange WARNING: odd size %d, switching to ring algorithm",
+ XBT_INFO(
+ "coll:tuned:allgather_intra_neighborexchange: odd size %d, switching to ring algorithm",
size);
return allgather__ring(sbuf, scount, sdtype,
rbuf, rcount, rdtype,
return err;
}
-
-}
-}
+} // namespace simgrid::smpi