These are chat archives for elemental/chat

8th
Mar 2017
Ryan H. Lewis
@rhl-
Mar 08 2017 16:37
Is there any reason why MPI_Init() would fail
For the elemental Python bindings
Jack Poulson
@poulson
Mar 08 2017 16:37
if the toolchain isn't properly set up
e.g., mismatched MPI implementations
Ryan H. Lewis
@rhl-
Mar 08 2017 16:38
Hello world in c++ works
With MPI Init
Jack Poulson
@poulson
Mar 08 2017 16:39
what error are you getting in Python?
and have you run through a debugger?
Ryan H. Lewis
@rhl-
Mar 08 2017 16:40
I'm getting the Open MPI Init failed for for some reason error
I ran the Python ElInitialize code manually
It seems to be in the library wrapper code
Jack Poulson
@poulson
Mar 08 2017 16:44
are you sure the PYTHONPATH and LD_LIBRARY_PATH are set up properly?
and what library wrapper code are you referring to?
Elemental's C++ -> C interface?
Ryan H. Lewis
@rhl-
Mar 08 2017 16:46
Python to C
Jack Poulson
@poulson
Mar 08 2017 16:47
that code hasn't changed in a while, so I am skeptical
Ryan H. Lewis
@rhl-
Mar 08 2017 16:47
I'm 100% sure it's not a code bug
Just not sure what I am doing wrong yet
Jack Poulson
@poulson
Mar 08 2017 16:47
whose code?
ah
check that your PYTHONPATH is pointing to the library you think it is
Ryan H. Lewis
@rhl-
Mar 08 2017 16:48
I have Pythonpath set to include the el installed code
Which is how I am able to import El in ipython
Jack Poulson
@poulson
Mar 08 2017 16:48
and that the DLL load within the generated python/El/environment.py is what its supposed to be
Ryan H. Lewis
@rhl-
Mar 08 2017 16:50
That looks ok
And LDD on that has no problems
Jack Poulson
@poulson
Mar 08 2017 16:51
and it's the right location?
are you sure your C++ tests were testing the same install?
Ryan H. Lewis
@rhl-
Mar 08 2017 16:54
Yeah, it loads the library it just fails on MPI_Init
Jack Poulson
@poulson
Mar 08 2017 16:58
can you define "fail"?
Ryan H. Lewis
@rhl-
Mar 08 2017 16:58
Yeah hang on
"It looks like opal_init failed for some reason: your parallel process is likely to abort.... " eventually it says opal_shmem_base_select failed
Returned -1 instead of OPAL_SUCCESS
There are two more of these
Essentially OpenMPI dies in MPI_init
Inside of import El
Jack Poulson
@poulson
Mar 08 2017 17:04
I have to run right now unfortunately
Ryan H. Lewis
@rhl-
Mar 08 2017 17:34
No problem