
Hello, I work for a long time again with C + + and some numerical methods must be implemented with the help of the boost, among other things, with MPI. Does the Booster precompiler flag that I can verify that the boost is compiled with MPI support like: #if defined(BOOST_WITH_MPI) #endif Thanks for help Phil

Kraus Philipp wrote:
Hello,
I work for a long time again with C + + and some numerical methods must be implemented with the help of the boost, among other things, with MPI. Does the Booster precompiler flag that I can verify that the boost is compiled with MPI support like:
#if defined(BOOST_WITH_MPI) #endif
Thanks for help
Phil
Hi Phil, I am pretty sure that cannot be achieved without some special support from the build system. What build system are you using to build your application with? Gevorg

Am 13.03.2010 um 17:03 schrieb Gevorg Voskanyan:
Kraus Philipp wrote:
Hello,
I work for a long time again with C + + and some numerical methods must be implemented with the help of the boost, among other things, with MPI. Does the Booster precompiler flag that I can verify that the boost is compiled with MPI support like:
#if defined(BOOST_WITH_MPI) #endif
Thanks for help
Phil
I am pretty sure that cannot be achieved without some special support from the build system. What build system are you using to build your application with?
I use scons for building my project, but I can't check for the open- mpi libs, because under MS systems you link the the boost against ms-mpi. My project has some parallel instructions which use the boost mpi components, but they arn't be necessary, so the don't need be compiled if there isn't the mpi support in the boost Thanks Phil

I use scons for building my project, but I can't check for the open-mpi libs, because under MS systems you link the the boost against ms-mpi.
My project has some parallel instructions which use the boost mpi components, but they arn't be necessary, so the don't need be compiled if there isn't the mpi support in the boost
Thanks
Phil
Hi, You can always check if the library is available. Without it, you won't have an MPI-enabled Boost. Matthieu -- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher

Am 13.03.2010 um 17:21 schrieb Matthieu Brucher:
I use scons for building my project, but I can't check for the open- mpi libs, because under MS systems you link the the boost against ms-mpi.
My project has some parallel instructions which use the boost mpi components, but they arn't be necessary, so the don't need be compiled if there isn't the mpi support in the boost
Thanks
Phil
Hi,
You can always check if the library is available. Without it, you won't have an MPI-enabled Boost.
Wich libaray? There are many MPI libs, MPICH2, MS MPI, Open-MPI. The Boost work with all libs and my project use only the boost. The project file are linked against the boost and the boost link against the MPI lib, but at compile time I don't know which lib is used. I need a flag at preprocessor time which shows the mpi support, because I run into compile and link error if the is no mpi support enabled. I include the boost/mpi.hpp but if there is no support I don't need include the hpp Phil

Kraus Philipp wrote: Am 13.03.2010 um 17:03 schrieb Gevorg Voskanyan:
Kraus Philipp wrote:
Hello,
I work for a long time again with C + + and some numerical methods must be implemented with the help of the boost, among other things, with MPI. Does the Booster precompiler flag that I can verify that the boost is compiled with MPI support like:
#if
defined(BOOST_WITH_MPI)
#endif
Thanks for help
Phil
I am pretty sure that cannot be achieved without some special support from the build system. What build system are you using to build your application with?
I use scons for building my project, but I can't check for the open-mpi libs, because under MS systems you link the the boost against ms-mpi.
I am not familiar with scons, but the idea I had was to employ an autoconf-like support in the build system to try to build a sample program that uses boost.mpi, and to define a preprocessor symbol named e.g. HAVE_BOOST_WITH_MPI if that sample builds well. Perhaps some scons expert can tell if it is possible to do with scons? FWIW, Boost.Build has just recently got that kind of support IIRC.
My project has some parallel instructions which use the boost mpi components, but they arn't be necessary, so the don't need be compiled if there isn't the mpi support in the boost
Nod.
Thanks
Phil
HTH, Gevorg
participants (3)
-
Gevorg Voskanyan
-
Kraus Philipp
-
Matthieu Brucher