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