Disable vectorization when compiled by nvcc, even is EIGEN_NO_CUDA is defined

This commit is contained in:
Gael Guennebaud 2017-07-17 11:01:28 +02:00
parent 9f8136ff74
commit 3182bdbae6

View File

@ -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.