diff options
author | Mehdi Goli <mehdi.goli@codeplay.com> | 2019-07-01 16:27:28 +0100 |
---|---|---|
committer | Mehdi Goli <mehdi.goli@codeplay.com> | 2019-07-01 16:27:28 +0100 |
commit | 9ea490c82c2603c6185c06e993943099b287a405 (patch) | |
tree | 2bf8f48fdd5281d589d0567aa192278998d5e064 /unsupported/Eigen/src | |
parent | 81a03bec75aac90aa343fccf6a7daf735e28c20d (diff) |
[SYCL] :
* Modifying TensorDeviceSYCL to use `EIGEN_THROW_X`.
* Modifying TensorMacro to use `EIGEN_TRY/CATCH(X)` macro.
* Modifying TensorReverse.h to use `EIGEN_DEVICE_REF` instead of `&`.
* Fixing the SYCL device macro in SpecialFunctionsImpl.h.
Diffstat (limited to 'unsupported/Eigen/src')
-rw-r--r-- | unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 5784cbc86..1464a9751 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -193,7 +193,7 @@ struct lgamma_impl<float> { #if !defined(EIGEN_GPU_COMPILE_PHASE) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__) int dummy; return ::lgammaf_r(x, &dummy); -#elif defined(EIGEN_USE_SYCL) && defined(__SYCL_DEVICE_ONLY__) +#elif defined(SYCL_DEVICE_ONLY) return cl::sycl::lgamma(x); #else return ::lgammaf(x); @@ -208,7 +208,7 @@ struct lgamma_impl<double> { #if !defined(EIGEN_GPU_COMPILE_PHASE) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__) int dummy; return ::lgamma_r(x, &dummy); -#elif defined(EIGEN_USE_SYCL) && defined(__SYCL_DEVICE_ONLY__) +#elif defined(SYCL_DEVICE_ONLY) return cl::sycl::lgamma(x); #else return ::lgamma(x); @@ -428,7 +428,7 @@ template <> struct erf_impl<float> { EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE float run(float x) { -#if defined(EIGEN_USE_SYCL) && defined(__SYCL_DEVICE_ONLY__) +#if defined(SYCL_DEVICE_ONLY) return cl::sycl::erf(x); #else return ::erff(x); @@ -440,7 +440,7 @@ template <> struct erf_impl<double> { EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE double run(double x) { -#if defined(EIGEN_USE_SYCL) && defined(__SYCL_DEVICE_ONLY__) +#if defined(SYCL_DEVICE_ONLY) return cl::sycl::erf(x); #else return ::erf(x); @@ -473,7 +473,7 @@ template <> struct erfc_impl<float> { EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE float run(const float x) { -#if defined(EIGEN_USE_SYCL) && defined(__SYCL_DEVICE_ONLY__) +#if defined(SYCL_DEVICE_ONLY) return cl::sycl::erfc(x); #else return ::erfcf(x); @@ -485,7 +485,7 @@ template <> struct erfc_impl<double> { EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE double run(const double x) { -#if defined(EIGEN_USE_SYCL) && defined(__SYCL_DEVICE_ONLY__) +#if defined(SYCL_DEVICE_ONLY) return cl::sycl::erfc(x); #else return ::erfc(x); |