]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/colls/bcast/bcast-ompi-pipeline.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add copy constructor to state, so we can backtrack different ways
[simgrid.git] / src / smpi / colls / bcast / bcast-ompi-pipeline.cpp
index 0de5fffa227f4e0451b96a3b316632f39420d8d3..cb472fff7a7553a6c813818b2f7071ae1aa72ea7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2017. 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
@@ -9,13 +9,12 @@
 
 #define MAXTREEFANOUT 32
 
-namespace simgrid{
-namespace smpi{
-int Coll_bcast_ompi_pipeline::bcast( void* buffer,
-                                      int original_count,
-                                      MPI_Datatype datatype,
-                                      int root,
-                                      MPI_Comm comm)
+namespace simgrid::smpi {
+int bcast__ompi_pipeline( void* buffer,
+                          int original_count,
+                          MPI_Datatype datatype,
+                          int root,
+                          MPI_Comm comm)
 {
     int count_by_segment = original_count;
     size_t type_size;
@@ -35,7 +34,7 @@ int Coll_bcast_ompi_pipeline::bcast( void* buffer,
     char *tmpbuf;
     ptrdiff_t extent;
     MPI_Request recv_reqs[2] = {MPI_REQUEST_NULL, MPI_REQUEST_NULL};
-    MPI_Request *send_reqs = NULL;
+    MPI_Request* send_reqs   = nullptr;
     int req_index;
 
     /**
@@ -211,5 +210,4 @@ int Coll_bcast_ompi_pipeline::bcast( void* buffer,
     return (MPI_SUCCESS);
 }
 
-}
-}
+} // namespace simgrid::smpi