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
This commit is contained in:
Thales Sabino
2020-06-05 14:04:22 +01:00
committed by Rasmus Munk Larsen
parent 3ce18d3c8f
commit 1fcaaf460f
5 changed files with 93 additions and 13 deletions

View File

@@ -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;
};