2 Copyright Benjamin Worpitz 2018
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_PREDEF_LANGUAGE_CUDA_H
9 #define BOOST_PREDEF_LANGUAGE_CUDA_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_LANG_CUDA`]
17 [@https://en.wikipedia.org/wiki/CUDA CUDA C/C++] language.
18 If available, the version is detected as VV.RR.P.
21 [[__predef_symbol__] [__predef_version__]]
23 [[`__CUDACC__`] [__predef_detection__]]
24 [[`__CUDA__`] [__predef_detection__]]
26 [[`CUDA_VERSION`] [VV.RR.P]]
30 #define BOOST_LANG_CUDA BOOST_VERSION_NUMBER_NOT_AVAILABLE
32 #if defined(__CUDACC__) || defined(__CUDA__)
33 # undef BOOST_LANG_CUDA
35 # if defined(CUDA_VERSION)
36 # define BOOST_LANG_CUDA BOOST_PREDEF_MAKE_10_VVRRP(CUDA_VERSION)
38 # define BOOST_LANG_CUDA BOOST_VERSION_NUMBER_AVAILABLE
43 # define BOOST_LANG_CUDA_AVAILABLE
46 #define BOOST_LANG_CUDA_NAME "CUDA C/C++"
51 #include <boost/predef/detail/test.h>
52 BOOST_PREDEF_DECLARE_TEST(BOOST_LANG_CUDA,BOOST_LANG_CUDA_NAME)