12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef BOOST_COMPUTE_CONFIG_HPP
- #define BOOST_COMPUTE_CONFIG_HPP
- #include <boost/config.hpp>
- #include <boost/version.hpp>
- #include <boost/compute/cl.hpp>
- #if BOOST_VERSION < 104800
- #error Boost.Compute requires Boost version 1.48 or later
- #endif
- #if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || \
- defined(BOOST_NO_VARIADIC_TEMPLATES) || \
- (defined(__GNUC__) && !defined(__clang__) && \
- __GNUC__ == 4 && __GNUC_MINOR__ <= 6)
- #define BOOST_COMPUTE_NO_VARIADIC_TEMPLATES
- #endif
- #if defined(BOOST_NO_CXX11_HDR_TUPLE) || \
- defined(BOOST_NO_0X_HDR_TUPLE) || \
- defined(BOOST_COMPUTE_NO_VARIADIC_TEMPLATES)
- #define BOOST_COMPUTE_NO_STD_TUPLE
- #endif
- #ifdef CL_CALLBACK
- # define BOOST_COMPUTE_CL_CALLBACK CL_CALLBACK
- #else
- # define BOOST_COMPUTE_CL_CALLBACK
- #endif
- #ifndef BOOST_COMPUTE_MAX_ARITY
-
- # define BOOST_COMPUTE_MAX_ARITY 10
- #endif
- #if !defined(BOOST_COMPUTE_DOXYGEN_INVOKED) && \
- (defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_NO_RVALUE_REFERENCES))
- # define BOOST_COMPUTE_NO_RVALUE_REFERENCES
- #endif
- #if defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST) || \
- defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
- # define BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST
- #endif
- #if defined(BOOST_NO_CXX11_HDR_CHRONO) || \
- defined(BOOST_NO_0X_HDR_CHRONO)
- # define BOOST_COMPUTE_NO_HDR_CHRONO
- #endif
- #endif
|