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
|