Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / mpl / aux_ / config / gpu.hpp
1
2 #ifndef BOOST_MPL_AUX_CONFIG_GPU_HPP_INCLUDED
3 #define BOOST_MPL_AUX_CONFIG_GPU_HPP_INCLUDED
4
5 // Copyright Eric Niebler 2014
6 //
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10 //
11 // See http://www.boost.org/libs/mpl for documentation.
12
13 // $Id$
14 // $Date$
15 // $Revision$
16
17 #include <boost/config.hpp>
18
19 #if !defined(BOOST_MPL_CFG_GPU_ENABLED) \
20
21 #   define BOOST_MPL_CFG_GPU_ENABLED BOOST_GPU_ENABLED
22
23 #endif
24
25 #if defined __CUDACC__
26
27 #    define BOOST_MPL_CFG_GPU 1
28
29 #else
30
31 #    define BOOST_MPL_CFG_GPU 0
32
33 #endif
34
35 #endif // BOOST_MPL_AUX_CONFIG_GPU_HPP_INCLUDED