From 3182bdbae68b11aa8278107ca71c5df2de789e66 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 17 Jul 2017 11:01:28 +0200 Subject: [PATCH] Disable vectorization when compiled by nvcc, even is EIGEN_NO_CUDA is defined --- Eigen/Core | 4 ++++ 1 file changed, 4 insertions(+) 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.