mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-01 08:14:10 +08:00
Worked around nvcc crash when compiling Eigen on Tegra X1
This commit is contained in:
parent
c2bf2f56ef
commit
24d291cf16
@ -354,8 +354,12 @@
|
|||||||
|
|
||||||
// Does the compiler support variadic templates?
|
// Does the compiler support variadic templates?
|
||||||
#if __cplusplus > 199711L
|
#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
|
#define EIGEN_HAS_VARIADIC_TEMPLATES 1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Does the compiler support const expressions?
|
// Does the compiler support const expressions?
|
||||||
#ifdef __CUDACC__
|
#ifdef __CUDACC__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user