[Boost-bugs] [Boost C++ Libraries] #6580: problem with OpenMP > 1.3I and boost-mpi-python

Subject: [Boost-bugs] [Boost C++ Libraries] #6580: problem with OpenMP > 1.3I and boost-mpi-python
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-19 17:12:56


#6580: problem with OpenMP > 1.3I and boost-mpi-python
-----------------------+----------------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.48.0
 Severity: Problem | Keywords:
-----------------------+----------------------------------------------------
 when installing with bjam and using openmpi for MPI, the bjam generated
 mpi.so can not be loaded from within python.

 the packagers for ubuntu solve this problem by putting

 mpi.so
 within a subdirectory
 boost

 so something like
 my_boost/lib/boost/mpi.so

 together with a __init__.py file that contains:

 import sys
 if sys.platform == 'linux2':
     import DLFCN as dl
     flags = sys.getdlopenflags()
     sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
     import mpi
     sys.setdlopenflags(flags)
 else:
     import mpi

 this way the mpi library can be imported as

 import boost.mpi

 this will open the __init__.py and ensure that the lib can be correctly
 loaded

 without this the lib should be imported as
 import mpi

 which fails with openmpi

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6580>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC