From 61461d682a8ae5eda20d82fd49e50c8a3631155d Mon Sep 17 00:00:00 2001 From: mehdi-goli Date: Tue, 27 Oct 2020 16:22:26 +0000 Subject: [PATCH] [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. --- Eigen/src/Core/arch/SYCL/MathFunctions.h | 1 + 1 file changed, 1 insertion(+) 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