mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-30 02:05:18 +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
|
// 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user