aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/Core')
-rw-r--r--Eigen/Core10
1 files changed, 10 insertions, 0 deletions
diff --git a/Eigen/Core b/Eigen/Core
index d5b286e53..d8f62c825 100644
--- a/Eigen/Core
+++ b/Eigen/Core
@@ -49,6 +49,16 @@
#endif
#endif
+// Handle NVCC/CUDA
+#ifdef __CUDACC__
+ // Do not try to vectorize on CUDA!
+ #define EIGEN_DONT_VECTORIZE
+ // Do not try asserts on CUDA!
+ #define EIGEN_NO_DEBUG
+ // All functions callable from CUDA code must be qualified with __device__
+ #define EIGEN_DEVICE_FUNC __host__ __device__
+#endif
+
#ifndef EIGEN_DONT_VECTORIZE
#if defined (EIGEN_SSE2_ON_NON_MSVC_BUT_NOT_OLD_GCC) || defined(EIGEN_SSE2_ON_MSVC_2008_OR_LATER)