aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/SYCL
diff options
context:
space:
mode:
authorGravatar Thales Sabino <thales@codeplay.com>2020-06-05 14:04:22 +0100
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-06-05 20:51:20 +0000
commit1fcaaf460fc4d3a78a42619005a1fb5c4a3dd6ca (patch)
treeae2673285529190eb61bcd9c1dc7409d1ea5808a /Eigen/src/Core/arch/SYCL
parent3ce18d3c8f22cdb4a36cb1563f14a2a0f285f28c (diff)
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
Diffstat (limited to 'Eigen/src/Core/arch/SYCL')
-rw-r--r--Eigen/src/Core/arch/SYCL/PacketMath.h4
1 files changed, 2 insertions, 2 deletions
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 <typename T> struct convert_to_integer;
template <> struct convert_to_integer<float> {
- using type = int;
+ using type = std::int32_t;
using packet_type = cl::sycl::cl_int4;
};
template <> struct convert_to_integer<double> {
- using type = long;
+ using type = std::int64_t;
using packet_type = cl::sycl::cl_long2;
};