From ede033ee7958539410df73181fdbcfc81e7c19e9 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 13 Aug 2024 14:59:05 -0400 Subject: [PATCH] Add GPU to macro definitions --- include/boost/math/policies/policy.hpp | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/boost/math/policies/policy.hpp b/include/boost/math/policies/policy.hpp index a17dfe6db..432191362 100644 --- a/include/boost/math/policies/policy.hpp +++ b/include/boost/math/policies/policy.hpp @@ -135,16 +135,16 @@ namespace policies{ \ namespace detail{ \ template \ - char test_is_valid_arg(const name* = nullptr); \ - char test_is_default_arg(const name* = nullptr); \ + BOOST_MATH_GPU_ENABLED char test_is_valid_arg(const name* = nullptr); \ + BOOST_MATH_GPU_ENABLED char test_is_default_arg(const name* = nullptr); \ \ template \ class is_##name##_imp \ { \ private: \ template \ - static char test(const name* = nullptr); \ - static double test(...); \ + BOOST_MATH_GPU_ENABLED static char test(const name* = nullptr); \ + BOOST_MATH_GPU_ENABLED static double test(...); \ public: \ static constexpr bool value = sizeof(test(static_cast(nullptr))) == sizeof(char); \ }; \ @@ -164,16 +164,16 @@ namespace policies{ \ namespace detail{ \ template \ - char test_is_valid_arg(const name* = nullptr); \ - char test_is_default_arg(const name* = nullptr); \ + BOOST_MATH_GPU_ENABLED char test_is_valid_arg(const name* = nullptr); \ + BOOST_MATH_GPU_ENABLED char test_is_default_arg(const name* = nullptr); \ \ template \ class is_##name##_imp \ { \ private: \ template \ - static char test(const name* = nullptr); \ - static double test(...); \ + BOOST_MATH_GPU_ENABLED static char test(const name* = nullptr); \ + BOOST_MATH_GPU_ENABLED static double test(...); \ public: \ static constexpr bool value = sizeof(test(static_cast(nullptr))) == sizeof(char); \ }; \ @@ -273,10 +273,10 @@ public: #endif }; -double test_is_valid_arg(...); -double test_is_default_arg(...); -char test_is_valid_arg(const default_policy*); -char test_is_default_arg(const default_policy*); +BOOST_MATH_GPU_ENABLED double test_is_valid_arg(...); +BOOST_MATH_GPU_ENABLED double test_is_default_arg(...); +BOOST_MATH_GPU_ENABLED char test_is_valid_arg(const default_policy*); +BOOST_MATH_GPU_ENABLED char test_is_default_arg(const default_policy*); template class is_valid_policy_imp @@ -934,8 +934,8 @@ template -char test_is_policy(const policy*); -double test_is_policy(...); +BOOST_MATH_GPU_ENABLED char test_is_policy(const policy*); +BOOST_MATH_GPU_ENABLED double test_is_policy(...); template class is_policy_imp