From 3a5d6a3c3866ee7572ad7c6356d9da65fc30b4de Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 27 May 2016 09:13:26 -0700 Subject: [PATCH] Disable the use of MMX instructions since the code is broken on many platforms --- Eigen/src/Core/arch/CUDA/PacketMathHalf.h | 4 +++- Eigen/src/Core/arch/CUDA/TypeCasting.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h index 267c8d5e3..4f052dcf2 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h +++ b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h @@ -529,7 +529,9 @@ ptranspose(PacketBlock& kernel) { } -#elif defined(EIGEN_VECTORIZE_SSE) && (!EIGEN_ARCH_x86_64) && (!EIGEN_COMP_MSVC) +// Disable the following code since it's broken on too many platforms / compilers. +//#elif defined(EIGEN_VECTORIZE_SSE) && (!EIGEN_ARCH_x86_64) && (!EIGEN_COMP_MSVC) +#elif 0 typedef struct { __m64 x; diff --git a/Eigen/src/Core/arch/CUDA/TypeCasting.h b/Eigen/src/Core/arch/CUDA/TypeCasting.h index 2944f1b14..31f1c523a 100644 --- a/Eigen/src/Core/arch/CUDA/TypeCasting.h +++ b/Eigen/src/Core/arch/CUDA/TypeCasting.h @@ -128,7 +128,9 @@ template<> EIGEN_STRONG_INLINE Packet8h pcast(const Packet8f return float2half(a); } -#elif defined(EIGEN_VECTORIZE_SSE) && (!EIGEN_ARCH_x86_64) && (!EIGEN_COMP_MSVC) +// Disable the following code since it's broken on too many platforms / compilers. +//#elif defined(EIGEN_VECTORIZE_SSE) && (!EIGEN_ARCH_x86_64) && (!EIGEN_COMP_MSVC) +#elif 0 template <> struct type_casting_traits {