Bugzilla – Attachment 626 Details for
Bug 1115
Static alignment is still disabled altogether on ARM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
[patch]
Enable static alignment on ARM
eigen-arm-alignment.diff (text/plain), 1.62 KB, created by
Benoit Jacob
on 2015-11-17 17:04:54 UTC
(
hide
)
Description:
Enable static alignment on ARM
Filename:
MIME Type:
Creator:
Benoit Jacob
Created:
2015-11-17 17:04:54 UTC
Size:
1.62 KB
patch
obsolete
>diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h >--- a/Eigen/src/Core/util/Macros.h >+++ b/Eigen/src/Core/util/Macros.h >@@ -607,20 +607,19 @@ namespace Eigen { > #ifndef EIGEN_MAX_STATIC_ALIGN_BYTES > > // Try to automatically guess what is the best default value for EIGEN_MAX_STATIC_ALIGN_BYTES > > // 16 byte alignment is only useful for vectorization. Since it affects the ABI, we need to enable > // 16 byte alignment on all platforms where vectorization might be enabled. In theory we could always > // enable alignment, but it can be a cause of problems on some platforms, so we just disable it in > // certain common platform (compiler+architecture combinations) to avoid these problems. >- // Only static alignment is really problematic (relies on nonstandard compiler extensions that don't >- // work everywhere, for example don't work on GCC/ARM), try to keep heap alignment even >- // when we have to disable static alignment. >- #if EIGEN_COMP_GNUC && !(EIGEN_ARCH_i386_OR_x86_64 || EIGEN_ARCH_PPC || EIGEN_ARCH_IA64) >+ // Only static alignment is really problematic (relies on nonstandard compiler extensions), >+ // try to keep heap alignment even when we have to disable static alignment. >+ #if EIGEN_COMP_GNUC && !(EIGEN_ARCH_i386_OR_x86_64 || EIGEN_ARCH_ARM_OR_ARM64 || EIGEN_ARCH_PPC || EIGEN_ARCH_IA64) > #define EIGEN_GCC_AND_ARCH_DOESNT_WANT_STACK_ALIGNMENT 1 > #else > #define EIGEN_GCC_AND_ARCH_DOESNT_WANT_STACK_ALIGNMENT 0 > #endif > > // static alignment is completely disabled with GCC 3, Sun Studio, and QCC/QNX > #if !EIGEN_GCC_AND_ARCH_DOESNT_WANT_STACK_ALIGNMENT \ > && !EIGEN_GCC3_OR_OLDER \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1115
: 626