nvcc.hpp 964 B

123456789101112131415161718192021222324
  1. // (C) Copyright Eric Jourdanneau, Joel Falcou 2010
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org for most recent version.
  6. // NVIDIA CUDA C++ compiler setup
  7. #ifndef BOOST_COMPILER
  8. # define BOOST_COMPILER "NVIDIA CUDA C++ Compiler"
  9. #endif
  10. // NVIDIA Specific support
  11. // BOOST_GPU_ENABLED : Flag a function or a method as being enabled on the host and device
  12. #define BOOST_GPU_ENABLED __host__ __device__
  13. // A bug in version 7.0 of CUDA prevents use of variadic templates in some occasions
  14. // https://svn.boost.org/trac/boost/ticket/11897
  15. // This is fixed in 7.5. As the following version macro was introduced in 7.5 an existance
  16. // check is enough to detect versions < 7.5
  17. #if !defined(__CUDACC_VER__) || (__CUDACC_VER__ < 70500)
  18. # define BOOST_NO_CXX11_VARIADIC_TEMPLATES
  19. #endif