X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2703e1ee2a79e9fc7c86ebb122caa515ecf24d14..ec3e4ee5f1a7ffeb96e044057809944f364014e6:/src/smpi/colls/allreduce-redbcast.c diff --git a/src/smpi/colls/allreduce-redbcast.c b/src/smpi/colls/allreduce-redbcast.c index c00fc2f025..20b4481dd7 100644 --- a/src/smpi/colls/allreduce-redbcast.c +++ b/src/smpi/colls/allreduce-redbcast.c @@ -1,10 +1,16 @@ -#include "colls.h" +/* Copyright (c) 2013-2014. 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 smpi_coll_tuned_allreduce_redbcast(void *buf, void *buf2, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm) { - MPI_Reduce(buf, buf2, count, datatype, op, 0, comm); - MPI_Bcast(buf2, count, datatype, 0, comm); - return 0; + mpi_coll_reduce_fun(buf, buf2, count, datatype, op, 0, comm); + mpi_coll_bcast_fun(buf2, count, datatype, 0, comm); + return MPI_SUCCESS; }