X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/befbbbe1fbb31663a8f91e24ce12df271cf4ae79..8be89720f55b4ceeb2877531ae1602cc7ed947d6:/src/smpi/colls/bcast/bcast-arrival-scatter.cpp diff --git a/src/smpi/colls/bcast/bcast-arrival-scatter.cpp b/src/smpi/colls/bcast/bcast-arrival-scatter.cpp index 3ecba94976..040737ff94 100644 --- a/src/smpi/colls/bcast/bcast-arrival-scatter.cpp +++ b/src/smpi/colls/bcast/bcast-arrival-scatter.cpp @@ -1,10 +1,10 @@ -/* 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 * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "../colls_private.h" +#include "../colls_private.hpp" #ifndef BCAST_ARRIVAL_PATTERN_AWARE_HEADER_SIZE #define BCAST_ARRIVAL_PATTERN_AWARE_HEADER_SIZE 128 @@ -13,15 +13,14 @@ #ifndef BCAST_ARRIVAL_PATTERN_AWARE_MAX_NODE #define BCAST_ARRIVAL_PATTERN_AWARE_MAX_NODE 128 #endif -namespace simgrid{ -namespace smpi{ +namespace simgrid::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 +58,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; } @@ -233,5 +232,4 @@ int Coll_bcast_arrival_scatter::bcast(void *buf, int count, return MPI_SUCCESS; } -} -} +} // namespace simgrid::smpi