Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building projects with multi-threaded (Intel) MPI
From: Suckow, Thomas J (Thomas.Suckow_at_[hidden])
Date: 2014-09-30 13:39:55

If you are using the boost sources via boost-build (use-project /boost :
/path/to/boost/sources ;), then it won¹t automatically make -mt suffixes,
but when threading is multi it will be multithreading safe.

If you are using the libraries installed by the system, you are probably
making lib rules with <name>boost_mpi. You could add the mt suffix or do
some magic so it picks the right one. I also made a Jamfile to auto detect
Note that if you use /boost//headers, to be compatible with 1_56 you need
to <use>/boost//headers <implicit-dependancy>/boost//headers. I need to
update the readme at some point.

Hope that helps!


On 9/30/14, 10:24 AM, "Matthias Noack" <ma.noack.pr_at_[hidden]> wrote:

>I'm using Boost.Build for an MPI project and want to link against the
>multi-threaded MPI library. At least for Intel MPI, there are two
>libraries "" and "", where the second one is
>My user-config.jam, contains the following line:
>using mpi : /sw/intel/impi/ ;
>My Jamroot then uses "<library>/mpi//mpi" for the respective targets.
>Regardless of the <threading> property of the project, is used.
>I know I could specifiy all libraries manually in the user-config.jam
>via <find-shared-library>, but this would mean deciding whether or not I
>want threading for all projects and their targets.
>So ideally, I want to configure the library per target and use
>Boost.Build's built-in-support for MPI.
>Is there a solution for my problem, or do I have to do things manually?
>Unsubscribe & other changes:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at