From 4e2e615a7c2c719d2d708ab32840bad353322d8c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 19 Apr 2013 11:14:17 +0200 Subject: [PATCH] actually assertion are incompatible with nvcc even on host code --- Eigen/Core | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/Core b/Eigen/Core index 87f87cd70..26a37cf42 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -16,6 +16,8 @@ // Handle NVCC/CUDA #ifdef __CUDACC__ + // Do not try asserts on CUDA! + #define EIGEN_NO_DEBUG // Do not try to vectorize on CUDA! #define EIGEN_DONT_VECTORIZE @@ -28,8 +30,6 @@ #endif #if defined(__CUDA_ARCH__) - // Do not try asserts on CUDA! - #define EIGEN_NO_DEBUG #define EIGEN_USING_STD_MATH(FUNC) #else #define EIGEN_USING_STD_MATH(FUNC) using std::FUNC;