]> https://gitweb.dealii.org/ - dealii.git/commitdiff
disable nvcc Kokkos warnings
authorTimo Heister <timo.heister@gmail.com>
Sat, 2 Dec 2023 02:10:46 +0000 (21:10 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sat, 2 Dec 2023 02:35:06 +0000 (21:35 -0500)
cmake/modules/FindDEAL_II_KOKKOS.cmake

index d240b1a6c0bf56cf15a674eda9be5a49f34bc39c..d41b59033822bd6e1f3239ca6930da35d15372cb 100644 (file)
@@ -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()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.