X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b73466ada27682d1729f394549479da83ef4a99..954676b700e711f38ec4d286d33d5427d3f4ca46:/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 70855627ab..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] */