Opened 6 years ago

Last modified 6 years ago

#6580 new Bugs

problem with OpenMP > 1.3I and boost-mpi-python

Reported by: anonymous Owned by: Douglas Gregor
Milestone: To Be Determined Component: mpi
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc: rrossi@…


when installing with bjam and using openmpi for MPI, the bjam generated can not be loaded from within python.

the packagers for ubuntu solve this problem by putting within a subdirectory boost

so something like my_boost/lib/boost/

together with a 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)


import mpi

this way the mpi library can be imported as

import boost.mpi

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

without this the lib should be imported as import mpi

which fails with openmpi

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by rrossi@…

note that should be written as double-underscore init double-underscore

comment:2 Changed 6 years ago by viboes

Component: Nonempi
Owner: set to Douglas Gregor

Please set the component in the future if you want it to be analyzed.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Douglas Gregor.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.