diff options
author | 2015-07-22 12:29:18 +0200 | |
---|---|---|
committer | 2015-07-22 12:29:18 +0200 | |
commit | 815fa0dbf63f112f98fe3ac38483e0248caf9eec (patch) | |
tree | 45cff143ff8ffc55edde6caff72d667af6251b8f /Eigen/Core | |
parent | d259b719d1703e9271612d944e432edd72be1051 (diff) |
Fixed some compiler bugs in NVCC, now compiles with CUDA.
(chtz: Manually joined sevaral commits to keep the history clean)
Diffstat (limited to 'Eigen/Core')
-rw-r--r-- | Eigen/Core | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Eigen/Core b/Eigen/Core index de94b5b75..91713a43e 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -24,9 +24,15 @@ #ifdef EIGEN_INTERNAL_DEBUGGING #undef EIGEN_INTERNAL_DEBUGGING #endif - + // Do not try to vectorize on CUDA! + #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__ #define EIGEN_DEVICE_FUNC __host__ __device__ |