Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / src / smpi / colls / alltoall / alltoall-pair-one-barrier.cpp
index 79c5133e44c7583f8af570bae57368dfa0b633bf..2ca9cabb5079f984a64311e84967e64e37af24b2 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
@@ -26,8 +26,7 @@
  * Author: Ahmad Faraj
 
  ****************************************************************************/
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
 int
 alltoall__pair_one_barrier(const void *send_buff, int send_count,
                            MPI_Datatype send_type,
@@ -55,7 +54,7 @@ alltoall__pair_one_barrier(const void *send_buff, int send_count,
   send_chunk *= send_count;
   recv_chunk *= recv_count;
 
-  Colls::barrier(comm);
+  colls::barrier(comm);
   for (i = 0; i < num_procs; i++) {
     src = dst = rank ^ i;
     Request::sendrecv(send_ptr + dst * send_chunk, send_count, send_type, dst,
@@ -65,5 +64,4 @@ alltoall__pair_one_barrier(const void *send_buff, int send_count,
 
   return MPI_SUCCESS;
 }
-}
-}
+} // namespace simgrid::smpi