From 9c27b9c782daefed0353152555cb27aeff45d6da Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Mon, 15 Dec 2025 14:13:56 -0500 Subject: [PATCH] Fix CUDA support with logistic distribution --- include/boost/math/special_functions/logistic_sigmoid.hpp | 4 ++-- include/boost/math/special_functions/logit.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/math/special_functions/logistic_sigmoid.hpp b/include/boost/math/special_functions/logistic_sigmoid.hpp index 925b576ca3..7279b17e6c 100644 --- a/include/boost/math/special_functions/logistic_sigmoid.hpp +++ b/include/boost/math/special_functions/logistic_sigmoid.hpp @@ -15,7 +15,7 @@ namespace boost { namespace math { template -RealType logistic_sigmoid(RealType x, const Policy&) +BOOST_MATH_GPU_ENABLED RealType logistic_sigmoid(RealType x, const Policy&) { BOOST_MATH_STD_USING @@ -35,7 +35,7 @@ RealType logistic_sigmoid(RealType x, const Policy&) } template -RealType logistic_sigmoid(RealType x) +BOOST_MATH_GPU_ENABLED RealType logistic_sigmoid(RealType x) { return logistic_sigmoid(x, policies::policy<>()); } diff --git a/include/boost/math/special_functions/logit.hpp b/include/boost/math/special_functions/logit.hpp index 8a2ddf68dd..e9da275e70 100644 --- a/include/boost/math/special_functions/logit.hpp +++ b/include/boost/math/special_functions/logit.hpp @@ -17,7 +17,7 @@ namespace boost { namespace math { template -RealType logit(RealType p, const Policy&) +BOOST_MATH_GPU_ENABLED RealType logit(RealType p, const Policy&) { BOOST_MATH_STD_USING using std::atanh; @@ -45,7 +45,7 @@ RealType logit(RealType p, const Policy&) } template -RealType logit(RealType p) +BOOST_MATH_GPU_ENABLED RealType logit(RealType p) { return logit(p, policies::policy<>()); }