Suppress message 1222 when compiling with nvcc: this ensures that we don't warnings about unknown warning messages when compiling with older versions of nvcc

This commit is contained in:
Benoit Steiner 2016-09-13 12:42:13 -07:00
parent c10620b2b0
commit 309190cf02

View File

@ -57,6 +57,7 @@
// Disable the "dynamic initialization in unreachable code" message // Disable the "dynamic initialization in unreachable code" message
#pragma diag_suppress initialization_not_reachable #pragma diag_suppress initialization_not_reachable
// Disable the "calling a __host__ function from a __host__ __device__ function is not allowed" messages (yes, there are 4 of them) // Disable the "calling a __host__ function from a __host__ __device__ function is not allowed" messages (yes, there are 4 of them)
#pragma diag_suppress 1222
#pragma diag_suppress 2651 #pragma diag_suppress 2651
#pragma diag_suppress 2653 #pragma diag_suppress 2653
#pragma diag_suppress 2668 #pragma diag_suppress 2668