]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #17424 from tjhei/kokkos-nvcc-ignore-cast-qual 17443/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2024 19:41:30 +0000 (15:41 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2024 20:12:45 +0000 (16:12 -0400)
silence a Kokkos+CUDA warning

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.