mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
actually assertion are incompatible with nvcc even on host code
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
// Handle NVCC/CUDA
|
// Handle NVCC/CUDA
|
||||||
#ifdef __CUDACC__
|
#ifdef __CUDACC__
|
||||||
|
// Do not try asserts on CUDA!
|
||||||
|
#define EIGEN_NO_DEBUG
|
||||||
// Do not try to vectorize on CUDA!
|
// Do not try to vectorize on CUDA!
|
||||||
#define EIGEN_DONT_VECTORIZE
|
#define EIGEN_DONT_VECTORIZE
|
||||||
|
|
||||||
@@ -28,8 +30,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__CUDA_ARCH__)
|
#if defined(__CUDA_ARCH__)
|
||||||
// Do not try asserts on CUDA!
|
|
||||||
#define EIGEN_NO_DEBUG
|
|
||||||
#define EIGEN_USING_STD_MATH(FUNC)
|
#define EIGEN_USING_STD_MATH(FUNC)
|
||||||
#else
|
#else
|
||||||
#define EIGEN_USING_STD_MATH(FUNC) using std::FUNC;
|
#define EIGEN_USING_STD_MATH(FUNC) using std::FUNC;
|
||||||
|
|||||||
Reference in New Issue
Block a user