Re: [OMPI users] Is there a MPI routine that returns the value of "npernode" being used?

2022-04-02 Thread Gilles Gouaillardet via users
Ernesto, Not directly. But you can use MPI_Comm_split_type(..., MPI_COMM_TYPE_SHARED, ...) and then MPI_Comm_size(...) on the "returned" communicator. Cheers, Gilles On Sun, Apr 3, 2022 at 5:52 AM Ernesto Prudencio via users < users@lists.open-mpi.org> wrote: > Thanks, > > > > Ernesto. > > Sc

[OMPI users] Is there a MPI routine that returns the value of "npernode" being used?

2022-04-02 Thread Ernesto Prudencio via users
Thanks, Ernesto. Schlumberger-Private

Re: [OMPI users] 101 question on MPI_Bcast()

2022-04-02 Thread Gilles Gouaillardet via users
Ernesto, MPI_Bcast() has no barrier semantic. It means the root rank can return after the message is sent (kind of eager send) and before it is received by other ranks. Cheers, Gilles On Sat, Apr 2, 2022, 09:33 Ernesto Prudencio via users < users@lists.open-mpi.org> wrote: > I have an “extrem

Re: [OMPI users] 101 question on MPI_Bcast()

2022-04-02 Thread Protze, Joachim via users
Hi Ernesto, You program is erroneous from MPI standard perspective. That means you are in anything can happen land. MPI implementations are typically optimized for performance and assume correct MPI usage from the application. In your situation, especially with small message size (?), the broadc