forked from boostorg/config
Fix for clang CUDA generation, fixes https://github.com/boostorg/config/issues/297
This commit is contained in:
@ -22,6 +22,7 @@
|
|||||||
// BOOST_GPU_ENABLED : Flag a function or a method as being enabled on the host and device
|
// BOOST_GPU_ENABLED : Flag a function or a method as being enabled on the host and device
|
||||||
#define BOOST_GPU_ENABLED __host__ __device__
|
#define BOOST_GPU_ENABLED __host__ __device__
|
||||||
|
|
||||||
|
#if !defined(__clang__) || defined(__NVCC__)
|
||||||
// A bug in version 7.0 of CUDA prevents use of variadic templates in some occasions
|
// A bug in version 7.0 of CUDA prevents use of variadic templates in some occasions
|
||||||
// https://svn.boost.org/trac/boost/ticket/11897
|
// https://svn.boost.org/trac/boost/ticket/11897
|
||||||
// This is fixed in 7.5. As the following version macro was introduced in 7.5 an existance
|
// This is fixed in 7.5. As the following version macro was introduced in 7.5 an existance
|
||||||
@ -38,6 +39,8 @@
|
|||||||
# define BOOST_NO_CXX11_CONSTEXPR
|
# define BOOST_NO_CXX11_CONSTEXPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __CUDACC__
|
#ifdef __CUDACC__
|
||||||
//
|
//
|
||||||
// When compiing .cu files, there's a bunch of stuff that doesn't work with msvc:
|
// When compiing .cu files, there's a bunch of stuff that doesn't work with msvc:
|
||||||
|
Reference in New Issue
Block a user