Boost logo

Boost-Build :

Subject: [Boost-build] using bjam with mpi, without using boost mpi
From: Avi Bahra (avibahra_at_[hidden])
Date: 2013-05-13 13:13:47


I am trying to use bjam (boost 1.47) with pure mpi (no boost MPI).

I have a placed 'using mpi ;' in the user-config.jam.

When I run bjam --debug-configuration, it correctly works out the includes
and link line.

If I hard wire the include and link from '--debug-configuration', then I
can link and run.

lib pthread ;
exe test_mpi
   : test/testmpi.cpp
     pthread
   : <variant>debug:<define>DEBUG
     <include>/usr/lib64/mpi/gcc/openmpi/include/openmpi
     <include>/usr/lib64/mpi/gcc/openmpi/include
     <linkflags>"-L/usr/lib64/mpi/gcc/openmpi/lib64 -lmpi_cxx -lmpi
-lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl"
   :
   ;

Is there a way to do this automatically ? ( i.e this will fail on a
different platform)

Any help appreciated .

Best regards,
Avi



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