Re: [OMPI users] Build problem

2017-05-24 Thread Andy Riebs
Exactly the hint that I needed -- thanks Gilles! Andy On 05/24/2017 10:33 PM, Gilles Gouaillardet wrote: Andy, it looks like some MPI libraries are being mixed in your environment from the test/datatype directory, what if you ldd .libs/lt-external32 does it resolve the the libmpi.so you

Re: [OMPI users] Build problem

2017-05-24 Thread Gilles Gouaillardet
Andy, it looks like some MPI libraries are being mixed in your environment from the test/datatype directory, what if you ldd .libs/lt-external32 does it resolve the the libmpi.so you expect ? Cheers, Gilles On 5/25/2017 11:02 AM, Andy Riebs wrote: Hi, I'm trying to build OMPI on

[OMPI users] Build problem

2017-05-24 Thread Andy Riebs
Hi, I'm trying to build OMPI on RHEL 7.2 with MOFED on an x86_64 system, and I'm seeing = Open MPI gitclone: test/datatype/test-suite.log = # TOTAL: 9 # PASS: 8 #

Re: [OMPI users] All processes waiting on MPI_Bcast

2017-05-24 Thread gilles
>} > >> */ > >> > >>return 0; > >> } > >> > >> and my utils.h file is: > >> > >> void linspace(double *ret, double start_in, double end_in, unsigned long int num_in){ > >>/* This function

Re: [OMPI users] All processes waiting on MPI_Bcast

2017-05-24 Thread Pranav Sumanth
lta_in = (end_in - start_in) / (num_in - 1); >> >> if(num_in == 1){ >>*(ret) = start_in; >>} >> >>*(ret) = start_in; >>for(int i=1; i < num_in-1; i++) { >>*(ret + i) = *(ret + i - 1) + delta_in; >>} >>*(ret + (num_i

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

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)]

[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;