X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/611d822b02f836d7abe031cced6adc4281ef4356..abf3b21ad3f4a19475431076e6e2b26f76d2e7d6:/src/smpi/colls/allgatherv/allgatherv-mpich-ring.cpp diff --git a/src/smpi/colls/allgatherv/allgatherv-mpich-ring.cpp b/src/smpi/colls/allgatherv/allgatherv-mpich-ring.cpp index d1dbc674b6..8be65a3c4b 100644 --- a/src/smpi/colls/allgatherv/allgatherv-mpich-ring.cpp +++ b/src/smpi/colls/allgatherv/allgatherv-mpich-ring.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2018. 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 @@ -25,17 +25,15 @@ * comm: communication ****************************************************************************/ -namespace simgrid{ -namespace smpi{ +namespace simgrid::smpi { -int -Coll_allgatherv_mpich_ring::allgatherv(void *sendbuf, int sendcount, - MPI_Datatype send_type, void *recvbuf, - int *recvcounts, int *displs, MPI_Datatype recvtype, - MPI_Comm comm) +int allgatherv__mpich_ring(const void *sendbuf, int sendcount, + MPI_Datatype send_type, void *recvbuf, + const int *recvcounts, const int *displs, MPI_Datatype recvtype, + MPI_Comm comm) { - char * sbuf = NULL, * rbuf = NULL; + char *sbuf = nullptr, *rbuf = nullptr; int soffset, roffset; int torecv=0, tosend=0, min, rank, comm_size; int sendnow, recvnow; @@ -127,5 +125,4 @@ Coll_allgatherv_mpich_ring::allgatherv(void *sendbuf, int sendcount, return MPI_SUCCESS; } -} -} +} // namespace simgrid::smpi