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

Moreover, I wanted to see if the installation is actually ok and I
tried running this program:

http://en.wikipedia.org/wiki/Message_Passing_Interface#Example_program

with exactly the same results; the code breaks when the memory address
of variable pool is referenced.


So, if you have any ideas or you think I might have missed something,
please let me know.



Thanks,

Catalin

------------------------------------------------------------------------

_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to