Boost logo

Boost-Build :

Subject: [Boost-build] Building projects with multi-threaded (Intel) MPI
From: Matthias Noack (ma.noack.pr_at_[hidden])
Date: 2014-09-30 13:24:00


Hi,

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 "libmpi.so" and "libmpi_mt.so", where the second one is
thread-safe.

My user-config.jam, contains the following line:

using mpi : /sw/intel/impi/4.1.1.036/bin64/mpiicpc ;

My Jamroot then uses "<library>/mpi//mpi" for the respective targets.

Regardless of the <threading> property of the project, libmpi.so 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?

Thanks,
Matthias


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk