aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-12-11 09:19:57 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-12-11 09:19:57 -0800
commitb8861b0c25475d92f805a4481f3fb584c693a9a6 (patch)
tree9a42ae4e155a74a69dfc276cf0ac0919777a6bc1 /Eigen
parent9a415fb1e2970e18ba19c11a83ec52743faeb74f (diff)
Make sure the data is aligned on a 64 byte boundary when using avx512 instructions.
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/util/Macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index fcad3694e..34f87ca40 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -589,6 +589,9 @@ namespace Eigen {
// If the user explicitly disable vectorization, then we also disable alignment
#if defined(EIGEN_DONT_VECTORIZE)
#define EIGEN_IDEAL_MAX_ALIGN_BYTES 0
+#elif defined(__AVX512F__)
+ // 64 bytes static alignmeent is preferred only if really required
+ #define EIGEN_IDEAL_MAX_ALIGN_BYTES 64
#elif defined(__AVX__)
// 32 bytes static alignmeent is preferred only if really required
#define EIGEN_IDEAL_MAX_ALIGN_BYTES 32