From bdcbc66a5cca656e1cbdfa97668f3e400a7cb08d Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 22 Dec 2015 17:51:55 -0800 Subject: Don't attempt to vectorize mean reductions of integers since we can't use SSE or AVX instructions to divide 2 integers. --- unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/Eigen/CXX11/src') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index 34ba4e392..f94ffa020 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -93,7 +93,7 @@ template struct SumReducer template struct MeanReducer { - static const bool PacketAccess = true; + static const bool PacketAccess = !NumTraits::IsInteger; static const bool IsStateful = true; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE -- cgit v1.2.3