Are you also sure that you have the same version of Open-MPI
on every machine of your cluster, and that it is the mpicxx of this
version that is called when you run your program?
I ask because you mentioned that there was an old version of Open-MPI
present... die you remove this?
On Mon, Jul 6, 2009 at 3:24 PM, Catalin David<catalindavid2003_at_[hidden]> wrote:
> On Mon, Jul 6, 2009 at 2:14 PM, Dorian Krause<doriankrause_at_[hidden]> wrote:
>>> //Initialize step
>>> //Here it breaks!!! Memory allocation issue!
>>> MPI_Comm_size(MPI_COMM_WORLD, &pool);
>>> std::cout<<"I'm here"<<std::endl; //this statement is never reached
>>> MPI_Comm_rank(MPI_COMM_WORLD, &myid);
>>> When trying to debug via gdb, the problem seems to be:
>>> Program received signal SIGSEGV, Segmentation fault.
>>> 0xb7524772 in ompi_comm_invalid (comm=Could not find the frame base
>>> for "ompi_comm_invalid".) at communicator.h:261
>>> 261 communicator.h: No such file or directory.
>>> in communicator.h
>>> which might indicate a problem with paths. For now, my LD_LIBRARY_PATH
>>> is set to "/users/cluster/cdavid/local/lib/" (the local folder in my
>>> home folder emulates the directory structure of the / folder).
>> and your PATH is also okay? (I see that you use plain mpicxx in the build)
> Hi again!
> This is the output of some commands in the terminal:
> cdavid_at_denali:~$ which mpicxx
> cdavid_at_denali:~$ echo $PATH
> cdavid_at_denali:~$ echo $LD_LIBRARY_PATH
> cdavid_at_denali:~$ locate communicator.h
> I don't see anything wrong with the path (I added the first part in
> order to make it look there first). I even tried adding
> "-L/users/cluster/cdavid/local/lib -lmpi
> -I/users/cluster/cdavid/local/include" to the compiler invocation, in
> hope of an improvement. So far, nothing.
> Catalin David
> B.Sc. Computer Science 2010
> Jacobs University Bremen
> Phone: +49-(0)1577-49-38-667
> College Ring 4, #343
> Bremen, 28759
> users mailing list