actually assertion are incompatible with nvcc even on host code

This commit is contained in:
Gael Guennebaud 2013-04-19 11:14:17 +02:00
parent 12439e1249
commit 4e2e615a7c

View File

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