X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b7ed19dfcc221d7b3eca182abb5c4a3946671172..adbdcbddadcbd685b72259874d1ebfd9cbbcc497:/src/smpi/colls/bcast/bcast-SMP-binomial.cpp diff --git a/src/smpi/colls/bcast/bcast-SMP-binomial.cpp b/src/smpi/colls/bcast/bcast-SMP-binomial.cpp index 6dfed6a42f..d336dd1d00 100644 --- a/src/smpi/colls/bcast/bcast-SMP-binomial.cpp +++ b/src/smpi/colls/bcast/bcast-SMP-binomial.cpp @@ -1,14 +1,14 @@ -/* Copyright (c) 2013-2014. 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" - -int Coll_bcast_SMP_binomial::bcast(void *buf, int count, - MPI_Datatype datatype, int root, - MPI_Comm comm) +#include "../colls_private.hpp" +namespace simgrid::smpi { +int bcast__SMP_binomial(void *buf, int count, + MPI_Datatype datatype, int root, + MPI_Comm comm) { int mask = 1; int size; @@ -27,8 +27,7 @@ int Coll_bcast_SMP_binomial::bcast(void *buf, int count, num_core = comm->get_intra_comm()->size(); }else{ //implementation buggy in this case - return Coll_bcast_mpich::bcast( buf , count, datatype, - root, comm); + return bcast__mpich(buf, count, datatype, root, comm); } int to_intra, to_inter; @@ -108,3 +107,5 @@ int Coll_bcast_SMP_binomial::bcast(void *buf, int count, return MPI_SUCCESS; } + +} // namespace simgrid::smpi