82// Disable the "invalid error number" message that we get with older versions of nvcc
83 #pragma diag_suppress 1222
84// Disable the "calling a __host__ function from a __host__ __device__ function is not allowed" messages (yes, there are many of them and they seem to change with every version of the compiler)
85 #pragma diag_suppress 2527
86 #pragma diag_suppress 2529
87 #pragma diag_suppress 2651
88 #pragma diag_suppress 2653
89 #pragma diag_suppress 2668
90 #pragma diag_suppress 2669
91 #pragma diag_suppress 2670
92 #pragma diag_suppress 2671
93 #pragma diag_suppress 2735
94 #pragma diag_suppress 2737
95 #pragma diag_suppress 2739
96#endif
97
98#else
99// warnings already disabled:
100# ifndef EIGEN_WARNINGS_DISABLED_2
101# define EIGEN_WARNINGS_DISABLED_2
102# elif defined(EIGEN_INTERNAL_DEBUGGING)
103# error "Do not include \"DisableStupidWarnings.h\" recursively more than twice!"