aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/Core
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-07-17 11:01:28 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-07-17 11:01:28 +0200
commit3182bdbae68b11aa8278107ca71c5df2de789e66 (patch)
tree0039687651b8e6066bd558599a3a97577486a2d5 /Eigen/Core
parent9f8136ff747088b9a74c89ab0b3d89ac1081e83d (diff)
Disable vectorization when compiled by nvcc, even is EIGEN_NO_CUDA is defined
Diffstat (limited to 'Eigen/Core')
-rw-r--r--Eigen/Core4
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/Core b/Eigen/Core
index d2edbd2bc..f613ee9aa 100644
--- a/Eigen/Core
+++ b/Eigen/Core
@@ -55,6 +55,10 @@
#define EIGEN_DEVICE_FUNC
#endif
+#ifdef __NVCC__
+#define EIGEN_DONT_VECTORIZE
+#endif
+
// When compiling CUDA device code with NVCC, pull in math functions from the
// global namespace. In host mode, and when device doee with clang, use the
// std versions.