diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-02-09 02:34:02 +0000 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-02-09 02:34:02 +0000 |
commit | 24d291cf164591c16cc6a6b60ec38551144cc43c (patch) | |
tree | 935ec28b20eda0814fae7467014be436f5fb0b33 /Eigen | |
parent | c2bf2f56efb0f83c3e8aeb796825f6bfda53977b (diff) |
Worked around nvcc crash when compiling Eigen on Tegra X1
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index cf6b03ec7..1993cb8ec 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -354,8 +354,12 @@ // Does the compiler support variadic templates? #if __cplusplus > 199711L +// Disable the use of variadic templates when compiling with nvcc on ARM devices: +// this prevents nvcc from crashing when compiling Eigen on Tegra X1 +#if !defined(__NVCC__) || !defined(EIGEN_ARCH_ARM_OR_ARM64) #define EIGEN_HAS_VARIADIC_TEMPLATES 1 #endif +#endif // Does the compiler support const expressions? #ifdef __CUDACC__ |