1818
1919// For cuda we would rather use builtin nextafter than unsupported boost::math::nextafter
2020// NVRTC does not support the forward declarations header
21- #ifndef BOOST_MATH_ENABLE_CUDA
21+ #ifndef BOOST_MATH_HAS_GPU_SUPPORT
2222# include < boost/math/special_functions/next.hpp>
2323# ifndef BOOST_MATH_HAS_NVRTC
2424# include < utility>
@@ -31,7 +31,7 @@ namespace math {
3131
3232namespace detail {
3333
34- #ifndef BOOST_MATH_ENABLE_CUDA
34+ #ifndef BOOST_MATH_HAS_GPU_SUPPORT
3535
3636template <typename T>
3737using fma_t = decltype (fma(std::declval<T>(), std::declval<T>(), std::declval<T>()));
@@ -52,7 +52,7 @@ BOOST_MATH_FORCEINLINE BOOST_MATH_GPU_ENABLED T local_fma(const T x, const T y,
5252 return x * y + z;
5353}
5454
55- #endif // BOOST_MATH_ENABLE_CUDA
55+ #endif // BOOST_MATH_HAS_GPU_SUPPORT
5656
5757template <typename T, typename Policy>
5858BOOST_MATH_GPU_ENABLED T pow1p_imp (const T x, const T y, const Policy& pol)
@@ -150,7 +150,7 @@ BOOST_MATH_GPU_ENABLED T pow1p_imp(const T x, const T y, const Policy& pol)
150150 t = x - (s - T (1 ));
151151 if (t > 0 )
152152 {
153- #ifdef BOOST_MATH_ENABLE_CUDA
153+ #ifdef BOOST_MATH_HAS_GPU_SUPPORT
154154 s = ::nextafter (s, T (1 ));
155155 #else
156156 s = boost::math::nextafter (s, T (1 ));
@@ -165,7 +165,7 @@ BOOST_MATH_GPU_ENABLED T pow1p_imp(const T x, const T y, const Policy& pol)
165165 t = x - (s - T (1 ));
166166 if (t < 0 )
167167 {
168- #ifdef BOOST_MATH_ENABLE_CUDA
168+ #ifdef BOOST_MATH_HAS_GPU_SUPPORT
169169 s = ::nextafter (s, T (0 ));
170170 #else
171171 s = boost::math::nextafter (s, T (0 ));
@@ -180,7 +180,7 @@ BOOST_MATH_GPU_ENABLED T pow1p_imp(const T x, const T y, const Policy& pol)
180180 t = T (1 ) - (s - x);
181181 if (t < 0 )
182182 {
183- #ifdef BOOST_MATH_ENABLE_CUDA
183+ #ifdef BOOST_MATH_HAS_GPU_SUPPORT
184184 s = ::nextafter (s, T (0 ));
185185 #else
186186 s = boost::math::nextafter (s, T (0 ));
@@ -207,7 +207,7 @@ BOOST_MATH_GPU_ENABLED T pow1p_imp(const T x, const T y, const Policy& pol)
207207 // Then exp(y*u) == exp(z)*exp(w).
208208 T z = y * u;
209209
210- #ifdef BOOST_MATH_ENABLE_CUDA
210+ #ifdef BOOST_MATH_HAS_GPU_SUPPORT
211211 T w = fma (y, u, -z);
212212 #else
213213 T w = local_fma (y, u, -z);
0 commit comments