From 70c5dc96a7e8019b8d558c6b2941abd3ffa9cffc Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 1 Dec 2023 21:10:46 -0500 Subject: [PATCH] disable nvcc Kokkos warnings --- cmake/modules/FindDEAL_II_KOKKOS.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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() -- 2.39.5