#2 Dynamic/static loading of 'libmpi.so' [open-mpi]

open
nobody
None
5
2009-08-16
2009-08-16
Anonymous
No

When running 'test_pypar.py', I get the following error message:

user@host ~$ python test_pypar.py
[host:31660] mca: base: component_find: unable to open osc pt2pt: file not found (ignored)
Pypar (version 2.1.0) initialised MPI OK with 1 processors
I am processor 0 of 1 on node host

Presumably, this has to do with the issue discussed at [1], but I wouldn't say I even understand whether the issue is important for pypar.

I generally prefer pypar over other Python MPI bindings due to the minimalist approach, so I report this issue in the hope that it will contribute to prevent pypar from breaking :-)

References:
[1] https://svn.open-mpi.org/trac/ompi/wiki/Linkers

Discussion

  • On Ubuntu karmic with OpenMPI, if nothing is done, then it fails like so:

    [pfarrell@saoirse:~]$ python -c "import pypar"
    python: symbol lookup error: /usr/lib/openmpi/lib/openmpi/mca_paffinity_linux.so: undefined symbol: mca_base_param_reg_int

    As described here, setting an LD_PRELOAD works around this issue:
    http://code.google.com/p/petsc4py/issues/detail?id=14

    It looks like the author of mpi4py found how to fix this properly later on:
    http://petsc.cs.iit.edu/petsc4py/petsc4py-dev/rev/300045797445

    Could a similar change be made to pypar?