aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/Core
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-02 11:44:27 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-02 11:44:27 -0700
commit0585b2965d06cc2c57be35844bd2d0d56e6334ac (patch)
tree64a24b32a0d5a6cc882a78adb524b394b1c5ec0c /Eigen/Core
parente44519744e6a788c12e572d654bb21de6bdf5684 (diff)
Disable vectorization on device only when compiling for sycl
Diffstat (limited to 'Eigen/Core')
-rw-r--r--Eigen/Core10
1 files changed, 5 insertions, 5 deletions
diff --git a/Eigen/Core b/Eigen/Core
index c82cddc5c..2d2616254 100644
--- a/Eigen/Core
+++ b/Eigen/Core
@@ -35,17 +35,17 @@
#undef EIGEN_INTERNAL_DEBUGGING
#endif
- // Do not try to vectorize on CUDA and SYCL!
- #ifndef EIGEN_DONT_VECTORIZE
- #define EIGEN_DONT_VECTORIZE
- #endif
-
#ifdef EIGEN_EXCEPTIONS
#undef EIGEN_EXCEPTIONS
#endif
// All functions callable from CUDA code must be qualified with __device__
#ifdef __CUDACC__
+ // Do not try to vectorize on CUDA and SYCL!
+ #ifndef EIGEN_DONT_VECTORIZE
+ #define EIGEN_DONT_VECTORIZE
+ #endif
+
#define EIGEN_DEVICE_FUNC __host__ __device__
// We need math_functions.hpp to ensure that that EIGEN_USING_STD_MATH macro
// works properly on the device side