Re: point to point confusion
- From: "Tommy Strømhaug" <stromhau@xxxxxxxxxxxx>
- Date: Wed, 17 Aug 2005 20:15:54 +0200
Wow, that was fast ! And thanx a lot !
Howerer, in the meantime, i have got another problem. Is it possible to tell
when to use what modes of both blocking and non blocking com ? Is it correct
that non blocking is always faster than blocking ? When should i use non
blocking sync send rather that Isend ? How about ready and buffered in non
blocking com?
Tommy
"David Cronk" <cronk@xxxxxxxxxxxxxxxx> wrote in message
news:430377c2$1_2@xxxxxxxxxxxxxxx
>
>
> Tommy Strhaug wrote:
>> Hello,
>>
>> If we are talking about the standard blocking MPI_Send(...), there are as
>> far as i know of, two possibilities.
>> 1. The system offer no buffering and the Send does not return before the
>> Recv has finished.
>
> Correction, send does not return until the Recv has started.
>
>> 2. The system offer buffering, and the bessage are copied into the
>> buffer, and the send return right away and the message is trasfered to
>> the destination at a later time.
>
> Only if there is enough unused buffer space. Otherwise, it must block
> until either some buffer space is freed-up, or a matching receive is
> posted. Also, the standard does not say how to implement MPI. If the
> recv has already been posted, a good MPI is going to skip the buffering
> step and the call will not return until the message has been copied onto
> the wire, rather than into a buffer.
>
>>
>> My question is : is it possible to do better than 2? I mean, non blocking
>> communication and blocking is the same here, am i right ? At least
>> conserning only speed and not the possiblity of deadlocks.
>
> Since the implementors are free to handle message passing anyway they
> want, as long an the syntax and semantics match the standard, there are
> more than 2. Message size, buffer space, and other factors may affect how
> a particular implementation carries out blocking sends.
>
> And to answer your question, no, blocking and non-blocking are not the
> same. With non-blocking, the app can continue to do computation even if
> there is no buffer space for the message and a matching receive has not
> been posted. Once a matching receive has posted, the buffering step can
> be skipped, which may improve performance.
>
> I hope this helps.
>
> Dave.
>
>>
>> Tommy,
>>
>>
>
> --
> Dr. David Cronk, Ph.D. phone: (865) 974-3735
> Research Leader fax: (865) 974-8296
> Innovative Computing Lab http://www.cs.utk.edu/~cronk
> University of Tennessee, Knoxville
.
- Follow-Ups:
- Re: point to point confusion
- From: David Cronk
- Re: point to point confusion
- References:
- point to point confusion
- From: Tommy Strømhaug
- Re: point to point confusion
- From: David Cronk
- point to point confusion
- Prev by Date: Re: MPICH nodes working intermittently
- Next by Date: Re: point to point confusion
- Previous by thread: Re: point to point confusion
- Next by thread: Re: point to point confusion
- Index(es):
Relevant Pages
|