forked from boostorg/config
CUDA: disable some C++11 and 14 features which aren't supported when compiling as a .cu file.
This commit is contained in:
@@ -30,3 +30,19 @@
|
|||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# define BOOST_NO_CXX11_CONSTEXPR
|
# define BOOST_NO_CXX11_CONSTEXPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __CUDACC__
|
||||||
|
//
|
||||||
|
// When compiing .cu files, there's a bunch of stuff that doesn't work with msvc:
|
||||||
|
//
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
# define BOOST_NO_CXX14_DIGIT_SEPARATORS
|
||||||
|
# define BOOST_NO_CXX11_UNICODE_LITERALS
|
||||||
|
#endif
|
||||||
|
//
|
||||||
|
// And this one effects the NVCC front end:
|
||||||
|
//
|
||||||
|
#define BOOST_NO_CXX11_NOEXCEPT
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user