From 1fcaaf460fc4d3a78a42619005a1fb5c4a3dd6ca Mon Sep 17 00:00:00 2001 From: Thales Sabino Date: Fri, 5 Jun 2020 14:04:22 +0100 Subject: Update FindComputeCpp.cmake to fix build problems on Windows - Use standard types in SYCL/PacketMath.h to avoid compilation problems on Windows - Add EIGEN_HAS_CONSTEXPR to cxx11_tensor_argmax_sycl.cpp to fix build problems on Windows --- Eigen/src/Core/arch/SYCL/PacketMath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/arch/SYCL') diff --git a/Eigen/src/Core/arch/SYCL/PacketMath.h b/Eigen/src/Core/arch/SYCL/PacketMath.h index b11b5af9d..87badc076 100644 --- a/Eigen/src/Core/arch/SYCL/PacketMath.h +++ b/Eigen/src/Core/arch/SYCL/PacketMath.h @@ -514,11 +514,11 @@ SYCL_PCMP(eq, cl::sycl::cl_double2) template struct convert_to_integer; template <> struct convert_to_integer { - using type = int; + using type = std::int32_t; using packet_type = cl::sycl::cl_int4; }; template <> struct convert_to_integer { - using type = long; + using type = std::int64_t; using packet_type = cl::sycl::cl_long2; }; -- cgit v1.2.3