2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

CUDA: Make function scope statics constexpr under CUDA.

This commit is contained in:
jzmaddock
2018-07-12 10:46:53 +01:00
parent df5b948d14
commit 613971a370

View File

@@ -267,8 +267,10 @@
//
// function scope static variables aren't allowed on CUDA device code:
//
#ifdef __CUDA_ARCH__
#if defined(__CUDA_ARCH__) && defined(BOOST_NO_CXX11_CONSTEXPR)
#define BOOST_MATH_GPU_STATIC
#elif defined(__CUDA_ARCH__)
#define BOOST_MATH_GPU_STATIC constexpr
#else
#define BOOST_MATH_GPU_STATIC static
#endif