Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] do all processors have to execute MPI_Bcast?
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2010-07-17 07:49:21

On Jul 17, 2010, at 4:13 AM, Anton Shterenlikht wrote:

> Sorry, just to be absolutely clear, are you saying
> that even though only one process in the communicator
> is calling Bcast, the call will be made on all
> processes?

MPI does not magically cause all processes to call MPI_Bcast behind the scenes for you. You must ensure that every process in the communicator explicitly invokes MPI_Bcast. You can do whatever logic you want (to include "if" blocks, etc.) as long as they all call MPI_Bcast.

To be clear: all MPI collective operations must be explicitly invoked by every process in the target communicator.

Jeff Squyres
For corporate legal information go to: