Thanks,Â although âAn intercommunicator cannot be used for collective communication.â i.e ,Â bcast calls., I can see how the MPI_Group_xx calls can be used to produce a useful group and then communicator;Â - thanks again but this is really the side issue to my main question about MPI_Bcast.
I seem to have duplicate concurrent processes interfering with each other.Â This would appear to be a breach of the MPI safety dictum, ie MPI_COMM_WORD is supposed to only include the processes started by a single mpirun command and isolate these processes from other similar groups of processes safely.
So, it would appear to be a bug.Â If so this has significant implications for environments such as mine, where it may often occur that the same program is run by different users simultaneously.Â
It is really this issue that it concerning me, I can rewrite the code but if it can crash when 2 copies run at the same time, I have a much bigger problem.
My suspicion is that a within the MPI_Bcast handshaking, a syncronising broadcast call may be colliding across the environments.Â My only evidence is an otherwise working program waits on broadcast reception forever when two or more copies are run at [exactly] the same time.
Has anyone else seen similar behavior in concurrently running programs that perform lots of broadcasts perhaps?
--- On Sun, 8/8/10, David Zhang <solarbikedz_at_[hidden]> wrote:
From: David Zhang <solarbikedz_at_[hidden]>
Subject: Re: [OMPI users] MPI_Bcast issue
To: "Open MPI Users" <users_at_[hidden]>
Received: Sunday, 8 August, 2010, 12:34 PM
In particular, intercommunicators
On 8/7/10, AurÃ©lien Bouteiller <bouteill_at_[hidden]> wrote:
> You should consider reading about communicators in MPI.
> Aurelien Bouteiller, Ph.D.
> Innovative Computing Laboratory, The University of Tennessee.
> EnvoyÃ© de mon iPad
> Le Aug 7, 2010 Ã 1:05, Randolph Pullen <randolph_pullen_at_[hidden]> a
> Ã©crit :
>> I seem to be having a problem with MPI_Bcast.
>> My massive I/O intensive data movement program must broadcast from n to n
>> nodes. My problem starts because I require 2 processes per node, a sender
>> and a receiver and I have implemented these using MPI processes rather
>> than tackle the complexities of threads on MPI.
>> Consequently, broadcast and calls like alltoall are not completely
>> helpful.Â The dataset is huge and each node must end up with a complete
>> copy built by the large number of contributing broadcasts from the sending
>> nodes.Â Network efficiency and run time are paramount.
>> As I donât want to needlessly broadcast all this data to the sending nodes
>> and I have a perfectly good MPI program that distributes globally from a
>> single node (1 to N), I took the unusual decision to start N copies of
>> this program by spawning the MPI system from the PVM system in an effort
>> to get my N to N concurrent transfers.
>> It seems that the broadcasts running on concurrent MPI environments
>> collide and cause all but the first process to hang waiting for their
>> broadcasts.Â This theory seems to be confirmed by introducing a sleep of
>> n-1 seconds before the first MPI_BcastÂ call on each node, which results
>> in the code working perfectly.Â (total run time 55 seconds, 3 nodes,
>> standard TCP stack)
>> My guess is that unlike PVM, OpenMPI implements broadcasts with broadcasts
>> rather than multicasts.Â Can someone confirm this?Â Is this a bug?
>> Is there any multicast or N to N broadcast where sender processes can
>> avoid participating when they donât need to?
>> Thanks in advance
>> users mailing list
Sent from my mobile device
University of California, San Diego
users mailing list