2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Make SYCL device support opt-in for us too

This commit is contained in:
Matt Borland
2025-09-26 08:08:46 +02:00
parent 2697069329
commit d1b394817b

View File

@@ -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