diff options
author | mehdi-goli <mehdi.goli@codeplay.com> | 2020-10-27 16:22:26 +0000 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2020-10-28 08:30:34 +0000 |
commit | 61461d682a8ae5eda20d82fd49e50c8a3631155d (patch) | |
tree | 017c12e766c46acf20fb6a3b376af0d2696ce011 | |
parent | ecb7bc9514b12051d050299234b2a74ac76b5a8e (diff) |
[Fixing expf issue]: Eigen uses the packet type operation for scaler type float on Sigmoid function(https://gitlab.com/libeigen/eigen/-/blob/master/Eigen/src/Core/functors/UnaryFunctors.h#L990). As a result SYCL backend breaks since SYCL backend only supports packet operation for vectorized type float4 and double2. The issue has been fixed by adding scalar type float to packet operation pexp for SYCL backend.
-rw-r--r-- | Eigen/src/Core/arch/SYCL/MathFunctions.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/SYCL/MathFunctions.h b/Eigen/src/Core/arch/SYCL/MathFunctions.h index a96625e2c..5190d591b 100644 --- a/Eigen/src/Core/arch/SYCL/MathFunctions.h +++ b/Eigen/src/Core/arch/SYCL/MathFunctions.h @@ -70,6 +70,7 @@ SYCL_PLOG10(cl::sycl::cl_double2) } SYCL_PEXP(cl::sycl::cl_float4) +SYCL_PEXP(cl::sycl::cl_float) SYCL_PEXP(cl::sycl::cl_double2) #undef SYCL_PEXP |