Boost

[homer@thor build_gcc5]$ module av lib/boost

--------------------------------- /sw/Modules/modulefiles ----------------------------------
lib/boost/1.55         lib/boost/1.70_gcc52
lib/boost/1.67         lib/boost/1.70_intel18

Version 1.55

  • version 1.55. installée sous /sw/lib/boost/1.55, compilée avec g++ version 4.4 et icpc version 14 .
  • la librairie boost mpi utilise SGI MPT.
  • module disponible : module load lib/boost

Version 1.67

  • même configuration que la version 1.55 ; link boost mpi avec SGI MPT.
  • 2 versions disponibles : gcc-toolset et intel-toolset (version 16 du compilateur intel).
[homer@thor build]$ module help lib/boost/1.67

----------- Module Specific Help for 'lib/boost/1.67' -------------

    modules - loads the boost library environment

    This adds /sw/lib/boost/1.67/gnu/* to several of the

    environment variables.

    2 versions exists (gnu or intel), but only gnu is loaded

     . the boost mpi is linked to SGI MPT

    Version 1.67

[homer@thor build]$ module show lib/boost/1.67
-------------------------------------------------------------------
/sw/Modules/modulefiles/lib/boost/1.67:

module-whatis     loads boost environment
setenv         BOOST_ROOT /sw/lib/boost/1.67/gnu
prepend-path     INCLUDE /sw/lib/boost/1.67/gnu/include
prepend-path     CPATH /sw/lib/boost/1.67/gnu/include
prepend-path     LD_LIBRARY_PATH /sw/lib/boost/1.67/gnu/lib
-------------------------------------------------------------------

Configuration de la compilation

[homer@thor boost_1_67_0]$ export MPICXX_CXX=icpc
[homer@thor boost_1_67_0]$ which icpc
/opt/intel/impi/5.1/compilers_and_libraries_2016.1.150/linux/bin/intel64/icpc
[homer@thor boost_1_67_0]$  cat ~/user-config.jam
using mpi : mpicxx :
        <library-path>/sw/sgi/mpt/mpt-2.12/lib
        <include>/sw/sgi/mpt/mpt-2.12/include
        <find-shared-library>mpi++
        <find-shared-library>mpi ;
[homer@thor boost_1_67_0]$ module li
Currently Loaded Modulefiles:
  1) intel-cc-16/16.0.1          3) intel-cmkl-16/16.0.1        5) mpt/2.12                    7) codes/python/2.7.12
  2) intel-fc-16/16.0.1          4) intel-tools-16/16.0.1       6) intel-compilers-16/16.0.1
[gueguenm@thor boost_1_67_0]$ ./bootstrap.sh --with-toolset=intel-linux --prefix=/sw/lib/boost/1.67/intel
Building Boost.Build engine with toolset intel-linux... tools/build/src/engine/bin.linuxx86_64/b2
Detecting Python version... 2.7
Detecting Python root... /sw/codes/python/2.7.12
Unicode/ICU support for Boost.Regex?... not found.
Backing up existing Boost.Build configuration in project-config.jam.2
Generating Boost.Build configuration in project-config.jam...

Bootstrapping is done. To build, run:

    ./b2

To adjust configuration, edit 'project-config.jam'.
Further information:

   - Command line help:
     ./b2 --help

   - Getting started guide:
     http://www.boost.org/more/getting_started/unix-variants.html

   - Boost.Build documentation:
     http://www.boost.org/build/doc/html/index.html

[[homer@thor boost_1_67_0]$ ./b2 install
/home/homer/codes/boost_1_67_0/libs/predef/check/../tools/check/predef.jam:46: Unescaped special character in argument $(language)::$(expression)
Performing configuration checks

    - default address-model    : 64-bit
    - default architecture     : x86

Building the Boost C++ Libraries.

    - symlinks supported       : yes (cached)
    - C++11 mutex              : no
    - lockfree boost::atomic_flag : yes
    - Boost.Config Feature Check: cxx11_auto_declarations : no
    - Boost.Config Feature Check: cxx11_constexpr : no
    - Boost.Config Feature Check: cxx11_defaulted_functions : no
    - Boost.Config Feature Check: cxx11_final : no
    - Boost.Config Feature Check: cxx11_hdr_mutex : no
    - Boost.Config Feature Check: cxx11_hdr_regex : no
    - Boost.Config Feature Check: cxx11_hdr_tuple : no
    - Boost.Config Feature Check: cxx11_lambdas : no
    - Boost.Config Feature Check: cxx11_noexcept : no
    - Boost.Config Feature Check: cxx11_nullptr : no
    - Boost.Config Feature Check: cxx11_rvalue_references : no
    - Boost.Config Feature Check: cxx11_template_aliases : no
    - Boost.Config Feature Check: cxx11_thread_local : no
    - Boost.Config Feature Check: cxx11_variadic_templates : no
    - has_icu builds           : no
    - zlib                     : yes
    - bzip2                    : yes
    - lzma                     : no
    - iconv (libc)             : yes
    - icu                      : no
    - icu (lib64)              : no
    - native-atomic-int32-supported : yes
    - native-syslog-supported  : yes
    - pthread-supports-robust-mutexes : yes
    - compiler-supports-visibility : yes
    - compiler-supports-ssse3  : yes
    - compiler-supports-avx2   : yes
    - gcc visibility           : yes
    - long double support      : yes
    - libbacktrace builds      : no
    - addr2line builds         : yes
    - WinDbg builds            : no
    - WinDbgCached builds      : no
    - BOOST_COMP_GNUC >= 4.3.0 : no
    - zlib                     : yes
    - bzip2                    : yes
    - lzma                     : no

Component configuration:

    - atomic                   : building
    - chrono                   : building
    - container                : building
    - context                  : building
    - contract                 : building
    - coroutine                : building
    - date_time                : building
    - exception                : building
    - fiber                    : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : building
    - iostreams                : building
    - locale                   : building
    - log                      : building
    - math                     : building
    - mpi                      : building
    - program_options          : building
    - python                   : building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - signals                  : building
    - stacktrace               : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - timer                    : building
    - type_erasure             : building
    - wave                     : building

Version 1.70

  • même configuration que la version 1.67 ; link boost mpi avec SGI MPT.
  • 2 versions disponibles : gcc-toolset (version 5.2 du compilateur gnu) et intel-toolset (version 18 du compilateur intel).
  • compilée avec la norme c++11
[homer@thor build]$ module help lib/boost/1.70_intel18

----------- Module Specific Help for 'lib/boost/1.70_intel18' ---------------------------

    modules - loads the boost library environment

    This adds /sw/lib/boost/1.70/intel18/* to several of the

    environment variables.

     Version Intel compiler 18

     . the boost mpi is linked to SGI MPT

     . Compiled with cxxstd=11

    Version 1.70

refs