File indexing completed on 2025-01-18 09:48:05
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_PREDEF_LANGUAGE_CUDA_H
0009 #define BOOST_PREDEF_LANGUAGE_CUDA_H
0010
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 #define BOOST_LANG_CUDA BOOST_VERSION_NUMBER_NOT_AVAILABLE
0032
0033 #if defined(__CUDACC__) || defined(__CUDA__)
0034 # undef BOOST_LANG_CUDA
0035 # include <cuda.h>
0036 # if defined(CUDA_VERSION)
0037 # define BOOST_LANG_CUDA BOOST_PREDEF_MAKE_10_VVRRP(CUDA_VERSION)
0038 # else
0039 # define BOOST_LANG_CUDA BOOST_VERSION_NUMBER_AVAILABLE
0040 # endif
0041 #endif
0042
0043 #if BOOST_LANG_CUDA
0044 # define BOOST_LANG_CUDA_AVAILABLE
0045 #endif
0046
0047 #define BOOST_LANG_CUDA_NAME "CUDA C/C++"
0048
0049
0050 #endif
0051
0052 #include <boost/predef/detail/test.h>
0053 BOOST_PREDEF_DECLARE_TEST(BOOST_LANG_CUDA,BOOST_LANG_CUDA_NAME)