Hello all,
Again apologies for length of original posting and many thanks to
Anthony for very helpful suggestions.
Based on the advice given by Anthony I have attempted to find a
simpler solution which limits the communication calls and wraps up the
population and results elements into one user defined struct. This way
I am presuming that it is ok to use blocking calls as in each case the
master will send out struct to all slaves and receive back results
from all, eliminating deadlock from previous versions.
The issues here surround the setting up of the struct which I have as
a 2d 3x3 type double array and a single double value. I wondering if
using the type contiguous functions would be better here, however I am
finding it difficult to understand exactly how to define them in the
examples I have been able to research. I am also wondering if is as
straight forward as I am proposing, to create an array of these
structs for comparison. As in previous mails, apolgies for what may
appear as novice mistakes, I am attempting to find correct solutions.
Thanks in advance,
k
On Fri, 11 Mar 2005 14:32:04 -0600 (CST), "Anthony J. Ciani"
<aciani1_at_[hidden]> wrote:
> Hello,
>
> First: That message was long. Too long. Think about what you want to say
> before you say it.
>
> Second: Is this really the place for that sort of debugging help?
>
> Third: This is a classic example of what happens when people don't think
> about how they use BLOCKING calls. Your program has slaves expecting to
> MPI_Recv() and MPI_Send() certain messages in a certain order; however,
> your master only sends an expected message to one of the slaves. The
> slaves which don't receive the message continue to wait for it, but the
> master and other slave have terminated, which forces the termination of
> the other slaves while waiting to MPI_Recv(). This produces the,
>
> MPI_Recv: process in local group is dead (rank 2, MPI_COMM_WORLD)
>
> error. If a process is using MPI_Recv() or MPI_Send you need to make
> certain that the message is sent or received before terminating!
>
>
> On Thu, 10 Mar 2005, karla b wrote:
> > Hello,
>
> <mega snip>
>
> ------------------------------------------------------------
> Anthony Ciani (aciani1_at_[hidden])
> Computational Condensed Matter Physics
> Department of Physics, University of Illinois, Chicago
> http://ciani.phy.uic.edu/~tony
> ------------------------------------------------------------
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
|