Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / src / smpi / colls / bcast / bcast-arrival-scatter.cpp
index 7d51422..78fb739 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2019. The SimGrid Team.
+/* Copyright (c) 2013-2022. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
 namespace simgrid{
 namespace smpi{
 /* Non-topology-specific pipelined linear-bcast function */
-int Coll_bcast_arrival_scatter::bcast(void *buf, int count,
-                                          MPI_Datatype datatype, int root,
-                                          MPI_Comm comm)
+int bcast__arrival_scatter(void *buf, int count,
+                           MPI_Datatype datatype, int root,
+                           MPI_Comm comm)
 {
   int tag = -COLL_TAG_BCAST;//in order to use ANY_TAG, make this one positive
-  int header_tag = 10;
+  int header_tag = -10;
   MPI_Status status;
 
   int curr_remainder;
@@ -59,8 +59,8 @@ int Coll_bcast_arrival_scatter::bcast(void *buf, int count,
 
   /* message too small */
   if (count < size) {
-    XBT_WARN("MPI_bcast_arrival_scatter use default MPI_bcast.");
-    Colls::bcast(buf, count, datatype, root, comm);
+    XBT_INFO("MPI_bcast_arrival_scatter: count < size, use default MPI_bcast.");
+    colls::bcast(buf, count, datatype, root, comm);
     return MPI_SUCCESS;
   }