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:
@@ -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
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user