diff options
author | Luke Iwanski <luke@codeplay.com> | 2016-11-17 11:47:13 +0000 |
---|---|---|
committer | Luke Iwanski <luke@codeplay.com> | 2016-11-17 11:47:13 +0000 |
commit | c5130dedbe67004895e515b82657c21343719a6d (patch) | |
tree | c14ab9c643a84f66b2c6f39b1d82d892870be0cb /Eigen/Core | |
parent | b5c75351e3b094d81d0e90906a5d7222337d1f6f (diff) |
Specialised basic math functions for SYCL device.
Diffstat (limited to 'Eigen/Core')
-rw-r--r-- | Eigen/Core | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Eigen/Core b/Eigen/Core index 82558155e..55fc886b6 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -43,10 +43,12 @@ #else #define EIGEN_DEVICE_FUNC #endif - #else #define EIGEN_DEVICE_FUNC +#endif +#if defined(EIGEN_USE_SYCL) + #define EIGEN_DONT_VECTORIZE #endif // When compiling CUDA device code with NVCC, pull in math functions from the @@ -283,6 +285,15 @@ #include <intrin.h> #endif +#if defined(__SYCL_DEVICE_ONLY__) + #undef min + #undef max + #undef isnan + #undef isinf + #undef isfinite + #include <SYCL/sycl.hpp> +#endif + /** \brief Namespace containing all symbols from the %Eigen library. */ namespace Eigen { |