Re: [OMPI users] All processes waiting on MPI_Bcast

2017-05-24 Thread gilles
> > users-ow...@lists.open-mpi.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of users digest..." > > > > > > Today's Topics: > > > > 1. Re: All processes wai

Re: [OMPI users] All processes waiting on MPI_Bcast

2017-05-24 Thread Pranav Sumanth
Subject line so it is more specific > than "Re: Contents of users digest..." > > > Today's Topics: > > 1. Re: All processes waiting on MPI_Bcast (Siva Srinivas Kolukula) > > > -------------- &

Re: [OMPI users] All processes waiting on MPI_Bcast

2017-05-24 Thread gilles
Hi, your program hangs because rank 0 does not call MPI_Bcast() generally speaking, when using collective operations (such as MPI_Bcast), all tasks of the communicators must invoke the collective operation, and with "matching" arguments. in the case of MPI_Bcast(), the root value must be the sam

Re: [OMPI users] All processes waiting on MPI_Bcast

2017-05-24 Thread Siva Srinivas Kolukula
When you call mpi_bcast all the processors should be calledin you code you are calling mpi_bcast in all the roots expect root. Try keeping mpi_bcast out of if condition. _ *SAVE WATER ** ~ **SAVE ENERGY**~ **~ **SAVE EARTH *[image: Earth-22-june.gif (7996 bytes)] http://sites.google.com/sit

[OMPI users] All processes waiting on MPI_Bcast

2017-05-24 Thread Pranav Sumanth
Greetings! I include a static header file utils.h with a function linspace. My main.cpp file is as follows: #include #include #include using namespace std; int main(int argc, const char * argv[]) { float start = 0., end = 1.; unsigned long int num = 100; double *linspaced;