From: northwind@earthlink.net (Karsten Jeppesen)
Newsgroups: comp.parallel.mpi
Subject: Re: can you check if a message was sent?
Date: Sat, 17 Jul 1999 03:43:52 GMT
Content-Transfer-Encoding: 7bit
References: <378E5287.A8EABF2@ucsd.edu>
Content-Type: text/plain; charset=us-ascii
Organization: yes
Mime-Version: 1.0
Message-Id: <378ffb92.8812848@news.earthlink.net>
Xref: ukc comp.parallel.mpi:5352


Yep
You issue a non-blocking receive, and then use "MPI_Test"to test for
if something has arrived.
Look also at the "MPI_Wait" which will synchronize you for the
revceive.

cheers,
Karsten


Joshua Senecal <jsenecal@ucsd.edu> wrote:

>I am recently new to MPI and I have a question that Ihave been unable to
>find the answer for in the materials and textbooks that I have, and I'm
>hoping that someone can help me with this.
>
>In MPI is there any way for a process to determine if a message has been
>sent to it without initiating any sort of receive? What I'd like to do
>is have a process periodically check if something has been sent to it,
>and if so, recieve it. If not, continue working.
>
>Thanks!
>
>-Josh

