Blame view

3rdparty/boost_1_81_0/boost/compute/config.hpp 2.3 KB
598bfd3f   Hu Chunming   提交_GLIBCXX_USE_CX...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  //---------------------------------------------------------------------------//
  // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
  //
  // Distributed under the Boost Software License, Version 1.0
  // See accompanying file LICENSE_1_0.txt or copy at
  // http://www.boost.org/LICENSE_1_0.txt
  //
  // See http://boostorg.github.com/compute for more information.
  //---------------------------------------------------------------------------//
  
  #ifndef BOOST_COMPUTE_CONFIG_HPP
  #define BOOST_COMPUTE_CONFIG_HPP
  
  #include <boost/config.hpp>
  #include <boost/version.hpp>
  #include <boost/compute/cl.hpp>
  
  // check for minimum required boost version
  #if BOOST_VERSION < 105400
  #error Boost.Compute requires Boost version 1.54 or later
  #endif
  
  // the BOOST_COMPUTE_NO_VARIADIC_TEMPLATES macro is defined
  // if the compiler does not *fully* support variadic templates
  #if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || \
      (defined(__GNUC__) && !defined(__clang__) && \
       __GNUC__ == 4 && __GNUC_MINOR__ <= 6)
    #define BOOST_COMPUTE_NO_VARIADIC_TEMPLATES
  #endif // BOOST_NO_CXX11_VARIADIC_TEMPLATES
  
  // the BOOST_COMPUTE_NO_STD_TUPLE macro is defined if the
  // compiler/stdlib does not support std::tuple
  #if defined(BOOST_NO_CXX11_HDR_TUPLE) || \
      defined(BOOST_COMPUTE_NO_VARIADIC_TEMPLATES)
    #define BOOST_COMPUTE_NO_STD_TUPLE
  #endif // BOOST_NO_CXX11_HDR_TUPLE
  
  // defines BOOST_COMPUTE_CL_CALLBACK to the value of CL_CALLBACK
  // if it is defined (it was added in OpenCL 1.1). this is used to
  // annotate certain callback functions registered with OpenCL
  #ifdef CL_CALLBACK
  #  define BOOST_COMPUTE_CL_CALLBACK CL_CALLBACK
  #else
  #  define BOOST_COMPUTE_CL_CALLBACK
  #endif
  
  // Maximum number of iterators acceptable for make_zip_iterator
  #ifndef BOOST_COMPUTE_MAX_ARITY
     // should be no more than max boost::tuple size (10 by default)
  #  define BOOST_COMPUTE_MAX_ARITY 10
  #endif
  
  #if !defined(BOOST_COMPUTE_DOXYGEN_INVOKED) && \
      defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
  #  define BOOST_COMPUTE_NO_RVALUE_REFERENCES
  #endif // BOOST_NO_CXX11_RVALUE_REFERENCES
  
  #if defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
  #  define BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST
  #endif // BOOST_NO_CXX11_HDR_INITIALIZER_LIST
  
  #if defined(BOOST_NO_CXX11_HDR_CHRONO)
  #  define BOOST_COMPUTE_NO_HDR_CHRONO
  #endif // BOOST_NO_CXX11_HDR_CHRONO
  
  #endif // BOOST_COMPUTE_CONFIG_HPP