Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SMPI copyright bump before release
[simgrid.git] / src / smpi / colls / allreduce / allreduce-redbcast.cpp
1 /* Copyright (c) 2013-2017. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "../colls_private.h"
8 namespace simgrid{
9 namespace smpi{
10 int Coll_allreduce_redbcast::allreduce(void *buf, void *buf2, int count,
11                                        MPI_Datatype datatype, MPI_Op op,
12                                        MPI_Comm comm)
13 {
14   Colls::reduce(buf, buf2, count, datatype, op, 0, comm);
15   Colls::bcast(buf2, count, datatype, 0, comm);
16   return MPI_SUCCESS;
17 }
18 }
19 }