]> https://gitweb.dealii.org/ - dealii.git/commitdiff
silence a Kokkos+CUDA warning 17424/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 2 Aug 2024 17:25:55 +0000 (13:25 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 2 Aug 2024 17:26:29 +0000 (13:26 -0400)
- sort list of warning flags
- ignore diag: type qualifier is meaningless on cast type

cmake/modules/FindDEAL_II_KOKKOS.cmake

index 40ac11261a8fb63dd8bf875b63da6265d9a05866..c0958d4a3412254940f248a3809311f13aeddb2c 100644 (file)
@@ -65,15 +65,17 @@ if(Kokkos_FOUND)
     #
     # 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 #186-D: pointless comparison of unsigned integer with zero
+    enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=186")
+    # warning #191-D: type qualifier is meaningless on cast type
+    enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=191")
     # warning #284-D: NULL reference is not allowed
     enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=284")
+    # variable "i" was set but never used:
+    enable_if_supported(DEAL_II_CXX_FLAGS "-Xcudafe --diag_suppress=550")
   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.