From 1b829695598a823fe3d9132d35ccdbb6e176c47e Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 18 Dec 2015 14:36:35 -0800 Subject: [PATCH] Add alignment requirement for local buffer used by the slicing op. --- unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h index bdc86e0fa..d8c923d74 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h @@ -443,7 +443,7 @@ struct TensorEvaluator, Devi return rslt; } else { - typename internal::remove_const::type values[packetSize]; + EIGEN_ALIGN_MAX typename internal::remove_const::type values[packetSize]; values[0] = m_impl.coeff(inputIndices[0]); values[packetSize-1] = m_impl.coeff(inputIndices[1]); for (int i = 1; i < packetSize-1; ++i) {