From: Daniel Arndt Date: Tue, 6 Aug 2024 19:41:30 +0000 (-0400) Subject: Merge pull request #17424 from tjhei/kokkos-nvcc-ignore-cast-qual X-Git-Tag: v9.6.0-rc2~4^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17443%2Fhead;p=dealii.git Merge pull request #17424 from tjhei/kokkos-nvcc-ignore-cast-qual silence a Kokkos+CUDA warning --- diff --git a/cmake/modules/FindDEAL_II_KOKKOS.cmake b/cmake/modules/FindDEAL_II_KOKKOS.cmake index 40ac11261a..c0958d4a34 100644 --- a/cmake/modules/FindDEAL_II_KOKKOS.cmake +++ b/cmake/modules/FindDEAL_II_KOKKOS.cmake @@ -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()