1/*
2Copyright Benjamin Worpitz 2018
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_ARCHITECTURE_PTX_H
9#define BOOST_PREDEF_ARCHITECTURE_PTX_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/*`
15[heading `BOOST_ARCH_PTX`]
16
17[@https://en.wikipedia.org/wiki/Parallel_Thread_Execution PTX] architecture.
18
19[table
20 [[__predef_symbol__] [__predef_version__]]
21
22 [[`__CUDA_ARCH__`] [__predef_detection__]]
23
24 [[`__CUDA_ARCH__`] [V.R.0]]
25 ]
26 */
27
28#define BOOST_ARCH_PTX BOOST_VERSION_NUMBER_NOT_AVAILABLE
29
30#if defined(__CUDA_ARCH__)
31# undef BOOST_ARCH_PTX
32# define BOOST_ARCH_PTX BOOST_PREDEF_MAKE_10_VR0(__CUDA_ARCH__)
33#endif
34
35#if BOOST_ARCH_PTX
36# define BOOST_ARCH_PTX_AVAILABLE
37#endif
38
39#define BOOST_ARCH_PTX_NAME "PTX"
40
41#endif
42
43#include <boost/predef/detail/test.h>
44BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PTX,BOOST_ARCH_PTX_NAME)
45