LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Peeyush Jain (jain.peeyush_at_[hidden])
Date: 2006-03-24 11:07:57


I know that but this increases my program complexity time. I want to
change some variable which will be known to everyone as soon as it get
changed so that the other process can check the value of that variable
and work according to that. For MPI_Gather I have to wait for every
process to be completed which is not a sudden action.

Peeyush

On 3/24/06, Prakash Velayutham <prakash.velayutham_at_[hidden]> wrote:
> Peeyush Jain wrote:
> > hi all,
> > I want to know the function by which i can broadcast a message from
> > one processor without even accesed by some other processor. I mean to
> > say
> >
> > some code change v,
> > if(v == -1)
> > MPI_Bcast();
> >
> > May be this v is changed by only one processor, then how can some
> > other processor enters into the MPI_Bcast function. Is there any other
> > function exist to solve this.
> >
> > Peeyush
> You could do something like MPI_Gather() for the value of v into a local
> variable and have a logic for that variable so that it shows whether v
> has been changed at least by one of the processes. In that case, based
> on the new variable, introduce the Bcast() or not? Just a suggestion.
> There might be a much better and straight forward way.
>
> Prakash
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>