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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user