gpu.hpp 666 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef BOOST_MPL_AUX_CONFIG_GPU_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_CONFIG_GPU_HPP_INCLUDED
  3. // Copyright Eric Niebler 2014
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #include <boost/config.hpp>
  14. #if !defined(BOOST_MPL_CFG_GPU_ENABLED) \
  15. # define BOOST_MPL_CFG_GPU_ENABLED BOOST_GPU_ENABLED
  16. #endif
  17. #if defined __CUDACC__
  18. # define BOOST_MPL_CFG_GPU 1
  19. #else
  20. # define BOOST_MPL_CFG_GPU 0
  21. #endif
  22. #endif // BOOST_MPL_AUX_CONFIG_GPU_HPP_INCLUDED