X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f35db13138682b1be530a509d1eeadeafff84ca7..HEAD:/src/smpi/colls/allreduce/allreduce-redbcast.cpp diff --git a/src/smpi/colls/allreduce/allreduce-redbcast.cpp b/src/smpi/colls/allreduce/allreduce-redbcast.cpp index 2cb49ee718..9ca1db62cc 100644 --- a/src/smpi/colls/allreduce/allreduce-redbcast.cpp +++ b/src/smpi/colls/allreduce/allreduce-redbcast.cpp @@ -1,19 +1,17 @@ -/* 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" -namespace simgrid{ -namespace smpi{ -int Coll_allreduce_redbcast::allreduce(void *buf, void *buf2, int count, - MPI_Datatype datatype, MPI_Op op, - MPI_Comm comm) +#include "../colls_private.hpp" +namespace simgrid::smpi { +int allreduce__redbcast(const void *buf, void *buf2, int count, + MPI_Datatype datatype, MPI_Op op, + MPI_Comm comm) { - Colls::reduce(buf, buf2, count, datatype, op, 0, comm); - Colls::bcast(buf2, count, datatype, 0, comm); + colls::reduce(buf, buf2, count, datatype, op, 0, comm); + colls::bcast(buf2, count, datatype, 0, comm); return MPI_SUCCESS; } -} -} +} // namespace simgrid::smpi