From d1b394817ba12640ea0d42cd63aa0ce152ec3a91 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Fri, 26 Sep 2025 08:08:46 +0200 Subject: [PATCH] Make SYCL device support opt-in for us too --- include/boost/math/tools/config.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/boost/math/tools/config.hpp b/include/boost/math/tools/config.hpp index 964a2bf0b..8e2225ac0 100644 --- a/include/boost/math/tools/config.hpp +++ b/include/boost/math/tools/config.hpp @@ -702,15 +702,11 @@ namespace boost{ namespace math{ # undef BOOST_MATH_FORCEINLINE # define BOOST_MATH_FORCEINLINE __forceinline__ -#elif defined(SYCL_LANGUAGE_VERSION) +#elif defined(SYCL_LANGUAGE_VERSION) && defined(BOOST_MATH_ENABLE_SYCL) # define BOOST_MATH_SYCL_ENABLED SYCL_EXTERNAL # define BOOST_MATH_HAS_GPU_SUPPORT -# ifndef BOOST_MATH_ENABLE_SYCL -# define BOOST_MATH_ENABLE_SYCL -# endif - # ifndef BOOST_MATH_NO_EXCEPTIONS # define BOOST_MATH_NO_EXCEPTIONS # endif