X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1faf1e4ac5d8295ab562c45a5507a471ad4540a6..ec3e4ee5f1a7ffeb96e044057809944f364014e6:/src/smpi/colls/bcast-ompi-pipeline.c diff --git a/src/smpi/colls/bcast-ompi-pipeline.c b/src/smpi/colls/bcast-ompi-pipeline.c index cd0e3ce3ab..3aebd8cb50 100644 --- a/src/smpi/colls/bcast-ompi-pipeline.c +++ b/src/smpi/colls/bcast-ompi-pipeline.c @@ -1,3 +1,9 @@ +/* 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" #include "coll_tuned_topo.h" @@ -38,7 +44,7 @@ int smpi_coll_tuned_bcast_ompi_pipeline( void* buffer, size = smpi_comm_size(comm); rank = smpi_comm_rank(comm); - xbt_assert( size > 1 ); + if(size==1)return MPI_SUCCESS; const double a_p16 = 3.2118e-6; /* [1 / byte] */ @@ -199,6 +205,7 @@ int smpi_coll_tuned_bcast_ompi_pipeline( void* buffer, } if( NULL != send_reqs ) free(send_reqs); + xbt_free(tree); return (MPI_SUCCESS); }