From: Timo Heister Date: Sat, 2 Dec 2023 02:10:46 +0000 (-0500) Subject: disable nvcc Kokkos warnings X-Git-Tag: relicensing~261^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70c5dc96a7e8019b8d558c6b2941abd3ffa9cffc;p=dealii.git disable nvcc Kokkos warnings --- diff --git a/cmake/modules/FindDEAL_II_KOKKOS.cmake b/cmake/modules/FindDEAL_II_KOKKOS.cmake index d240b1a6c0..d41b590338 100644 --- a/cmake/modules/FindDEAL_II_KOKKOS.cmake +++ b/cmake/modules/FindDEAL_II_KOKKOS.cmake @@ -50,6 +50,25 @@ else() set(DEAL_II_VECTORIZATION_WIDTH_IN_BITS 0) # Require lambda support to use Kokkos as a backend KOKKOS_CHECK(OPTIONS CUDA_LAMBDA) + + # Disable a bunch of annoying warnings generated by boost, template code, + # and in other random places: + # + # integer conversion resulted in a change of sign: + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=68") + # variable "i" was set but never used: + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=550") + # loop is not reachable: + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=128") + # warning #186-D: pointless comparison of unsigned integer with zero + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=186") + # warning #177-D: variable "n_max_face_orientations" was declared but never referenced + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=177") + # warning #284-D: NULL reference is not allowed + enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=284") + # extra parentheses: + enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-parentheses") + endif() endif()