On Mon, Jul 6, 2009 at 2:14 PM, Dorian Krause<doriankra...@web.de> wrote:
> Hi,
>
>>
>> //Initialize step
>> MPI_Init(&argc,&argv);
>> //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@denali:~$ which mpicxx
~/local/bin/mpicxx
cdavid@denali:~$ echo $PATH
/users/cluster/cdavid/local/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/scali/bin:/opt/scali/sbin:/opt/scali/contrib/pbs/bin:/users/cluster/cdavid/bin
cdavid@denali:~$ echo $LD_LIBRARY_PATH
/users/cluster/cdavid/local/lib/
cdavid@denali:~$ locate communicator.h
cdavid@denali:~$

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.

Regards,

Catalin


-- 

******************************
Catalin David
B.Sc. Computer Science 2010
Jacobs University Bremen

Phone: +49-(0)1577-49-38-667

College Ring 4, #343
Bremen, 28759
Germany
******************************

Reply via email to