From: pini Date: Fri, 7 May 2010 15:55:38 +0000 (+0000) Subject: The eager limit size itself is part of the RDV protocol. X-Git-Tag: SVN~21 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6efc4db71d869ae5af39d17eeeff2a615aba3ccf?hp=e42098ece35ef06fe7df355ee3f258d61eabbfdb The eager limit size itself is part of the RDV protocol. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7723 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index aeed260a91..2e192a05ae 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -61,7 +61,7 @@ static MPI_Request build_request(void* buf, int count, MPI_Datatype datatype, in request->complete = 0; request->match = MPI_REQUEST_NULL; request->flags = flags; - if(request->size <= EAGER_LIMIT) { + if(request->size < EAGER_LIMIT) { request->ack = MPI_REQUEST_NULL; } else { request->ack = xbt_new(s_smpi_mpi_request_t, 1); @@ -96,7 +96,7 @@ MPI_Request smpi_mpi_recv_init(void* buf, int count, MPI_Datatype datatype, int void smpi_mpi_start(MPI_Request request) { xbt_assert0(request->complete == 0, "Cannot start a non-finished communication"); - if(request->size > EAGER_LIMIT) { + if(request->size >= EAGER_LIMIT) { print_request("RDV ack", request->ack); smpi_mpi_wait(&request->ack, MPI_STATUS_IGNORE); }