Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rework the doc of model-check/replay, and add an example with sthread
[simgrid.git] / src / smpi / colls / allgatherv / allgatherv-mpich-ring.cpp
index c0d9dc925d39c2573e10368b10710004da953633..8be65a3c4bc04891aa6204fdfad7224b82f0e70e 100644 (file)
@@ -1,4 +1,4 @@
-/* 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
  *   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