-/* Copyright (c) 2013-2019. 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
* FIXME: uh, check smpi_pmpi again, but this routine is called for > 12, not
* less...
**/
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
int alltoallv__bruck(const void *sendbuf, const int *sendcounts, const int *senddisps,
MPI_Datatype sendtype, void *recvbuf,
const int *recvcounts,const int *recvdisps, MPI_Datatype recvtype,
int ii, ss, dst;
/* post only bblock isends/irecvs at a time as suggested by Tony Ladd */
for (ii = 0; ii < size; ii += bblock) {
- MPI_Request* requests = new MPI_Request[2 * bblock];
+ auto* requests = new MPI_Request[2 * bblock];
ss = size - ii < bblock ? size - ii : bblock;
count = 0;
}
return MPI_SUCCESS;
}
-}
-}
+} // namespace simgrid::smpi