aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-10-30 18:09:53 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-10-30 18:09:53 -0700
commitbc99c5f7db8d4d7e41e5e4358170e99a1bf9d364 (patch)
tree09aa140bdea7b498de90a64ff6eaeebd24d7ad51 /Eigen/src
parent1946cc44784c9d0b024a2f1d7d7664010735411f (diff)
fixed some potential alignment issues.
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/util/Macros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index 8fdd7d898..001907a0b 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -297,7 +297,9 @@ namespace Eigen {
* If we made alignment depend on whether or not EIGEN_VECTORIZE is defined, it would be impossible to link
* vectorized and non-vectorized code.
*/
-#if (defined __GNUC__) || (defined __PGI) || (defined __IBMCPP__) || (defined __ARMCC_VERSION)
+#if (defined __CUDACC__)
+#define EIGEN_ALIGN_TO_BOUNDARY(n) __align__(n)
+#elif (defined __GNUC__) || (defined __PGI) || (defined __IBMCPP__) || (defined __ARMCC_VERSION)
#define EIGEN_ALIGN_TO_BOUNDARY(n) __attribute__((aligned(n)))
#elif (defined _MSC_VER)
#define EIGEN_ALIGN_TO_BOUNDARY(n) __declspec(align(n))