mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
actually assertion are incompatible with nvcc even on host code
This commit is contained in:
parent
12439e1249
commit
4e2e615a7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user