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_ARCHITECTURE_PTX_H
9 #define BOOST_PREDEF_ARCHITECTURE_PTX_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_ARCH_PTX`]
17 [@https://en.wikipedia.org/wiki/Parallel_Thread_Execution PTX] architecture.
20 [[__predef_symbol__] [__predef_version__]]
22 [[`__CUDA_ARCH__`] [__predef_detection__]]
24 [[`__CUDA_ARCH__`] [V.R.0]]
28 #define BOOST_ARCH_PTX BOOST_VERSION_NUMBER_NOT_AVAILABLE
30 #if defined(__CUDA_ARCH__)
31 # undef BOOST_ARCH_PTX
32 # define BOOST_ARCH_PTX BOOST_PREDEF_MAKE_10_VR0(__CUDA_ARCH__)
36 # define BOOST_ARCH_PTX_AVAILABLE
39 #define BOOST_ARCH_PTX_NAME "PTX"
43 #include <boost/predef/detail/test.h>
44 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PTX,BOOST_ARCH_PTX_NAME)