Re: [OMPI users] Why should the attached code wait on MPI_Bcast

2006-07-18 Thread s anwar
Thanks. On 7/18/06, Bert Wesarg wrote: hi, s anwar wrote: > Thank you for the clarification. Why is MPI_COMM_SELF not the correct > communicator for MPI_Comm_spawn(). My application will have a single > master only. yes for a single master this should be the same, but never try this. > > Also

Re: [OMPI users] Why should the attached code wait on MPI_Bcast

2006-07-18 Thread Bert Wesarg
hi, s anwar wrote: > Thank you for the clarification. Why is MPI_COMM_SELF not the correct > communicator for MPI_Comm_spawn(). My application will have a single > master only. yes for a single master this should be the same, but never try this. > > Also, can I merge the intercommunicator into an

Re: [OMPI users] Why should the attached code wait on MPI_Bcast

2006-07-18 Thread s anwar
Thank you for the clarification. Why is MPI_COMM_SELF not the correct communicator for MPI_Comm_spawn(). My application will have a single master only. Also, can I merge the intercommunicator into an intracommunicator via MPI_Intercomm_merge(intercomm, 0, &intracomm) and use MPI_Bcast(..., 0, int

Re: [OMPI users] Why should the attached code wait on MPI_Bcast

2006-07-18 Thread Bert Wesarg
hi, yes sorry for my first reply, my words were to rough. a bcast for a intercomm works this way (in your words): - your masters want to send a buffer to your slaves - one of the masters must provide the MPI_ROOT as root in the MPI_BCAST call - all slaves must provide the rank of this MPI_ROOT a

Re: [OMPI users] Why should the attached code wait on MPI_Bcast

2006-07-18 Thread s anwar
I don't think I blamed the implementation in any way in my original email. My intent is to gain understanding of why my code does/should not work. I assumed that I was not passing the correct intercommunicator. However, I am at a loss on how to construct a proper intercommunicator in this case. Yo

Re: [OMPI users] Why should the attached code wait on MPI_Bcast

2006-07-18 Thread Bert Wesarg
Hi, s anwar wrote: > Please see attached source file. > > According to my understanding of MPI_Comm_spawn(), the intercommunicator > returned is the same as it is returned by MPI_Comm_get_parent() in the > spawned processes. I am assuming that there is one intercommunicator > which contains all t

[OMPI users] Why should the attached code wait on MPI_Bcast

2006-07-17 Thread s anwar
Please see attached source file. According to my understanding of MPI_Comm_spawn(), the intercommunicator returned is the same as it is returned by MPI_Comm_get_parent() in the spawned processes. I am assuming that there is one intercommunicator which contains all the (spawned) child processes as