1# Copyright 2013 Karsten Ahnert 2# Copyright 2013 Mario Mulansky 3# Copyright 2013 Pascal Germroth 4# Distributed under the Boost Software License, Version 1.0. (See 5# accompanying file LICENSE_1_0.txt or copy at 6# http://www.boost.org/LICENSE_1_0.txt) 7 8 9# Only builds target with supported OpenMP enabled toolsets. 10# 11# use as: 12# exe omp : omp.cpp : [ openmp ] ; 13# 14rule openmp return 15 # default 16 <build>no 17 # GNU C++ 18 <toolset>gcc:<cxxflags>-fopenmp 19 <toolset>gcc:<linkflags>-fopenmp 20 <toolset>gcc:<build>yes 21 # Microsoft Visual C++ 22 <toolset>msvc:<cxxflags>/openmp 23 <toolset>msvc:<linkflags>/openmp 24 <toolset>msvc:<build>yes 25 # Intel C++ 26 <toolset>intel-linux:<cxxflags>-openmp 27 <toolset>intel-linux:<linkflags>-openmp 28 <toolset>intel-linux:<build>yes 29 <toolset>intel-win:<cxxflags>-Qopenmp 30 <toolset>intel-win:<linkflags>-Qopenmp 31 <toolset>intel-win:<build>yes 32 # HP aC++ 33 <toolset>acc:<cxxflags>+Oopenmp 34 <toolset>acc:<linkflags>+Oopenmp 35 <toolset>acc:<build>yes 36 # Sun Studio 37 <toolset>sun:<cxxflags>-xopenmp 38 <toolset>sun:<linkflags>-xopenmp 39 <toolset>sun:<build>yes 40 # IBM XL 41 <toolset>vacpp:<cxxflags>-qsmp=omp 42 <toolset>vacpp:<linkflags>-qsmp=omp 43 <toolset>vacpp:<build>yes 44 # PG++ 45 <toolset>pgi:<cxxflags>-mp 46 <toolset>pgi:<linkflags>-mp 47 <toolset>pgi:<build>yes 48 # Pathscale 49 <toolset>pathscale:<cxxflags>-mp 50 <toolset>pathscale:<linkflags>-mp 51 <toolset>pathscale:<build>yes 52 ; 53