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

Disable promotion in the SYCL case

This commit is contained in:
Matt Borland
2025-06-10 10:16:01 -04:00
parent 6c8f87f408
commit f0da5f48f1
3 changed files with 14 additions and 0 deletions

View File

@@ -16,6 +16,12 @@
# pragma warning(disable: 4127) // conditional expression is constant
#endif
#ifdef SYCL_LANGUAGE_VERSION
#define BOOST_MATH_PROMOTE_DOUBLE_POLICY false
#include "sycl/sycl.hpp"
#include <boost/math/tools/config.hpp>
#endif
// #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
// To compile even if Cauchy mean is used.
#include <boost/math/concepts/real_concept.hpp> // for real_concept

View File

@@ -5,6 +5,10 @@
#ifndef SYCL_LANGUAGE_VERSION
#include <pch_light.hpp>
#else
#define BOOST_MATH_PROMOTE_DOUBLE_POLICY false
#include "sycl/sycl.hpp"
#include <boost/math/tools/config.hpp>
#endif
#ifdef __clang__

View File

@@ -5,6 +5,10 @@
#ifndef SYCL_LANGUAGE_VERSION
#include <pch_light.hpp>
#else
#define BOOST_MATH_PROMOTE_DOUBLE_POLICY false
#include "sycl/sycl.hpp"
#include <boost/math/tools/config.hpp>
#endif
#ifdef __clang__