]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate CUDAWrappers if the compiler supports it
authorBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 9 Feb 2024 14:48:57 +0000 (09:48 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 9 Feb 2024 18:57:15 +0000 (13:57 -0500)
include/deal.II/matrix_free/cuda_fe_evaluation.h
include/deal.II/matrix_free/cuda_hanging_nodes_internal.h
include/deal.II/matrix_free/cuda_matrix_free.h
include/deal.II/matrix_free/cuda_matrix_free.templates.h
include/deal.II/matrix_free/cuda_tensor_product_kernels.h

index 041fb7d748ff4694b7d511c7c483e00a1e410c6a..81474b140923ee4ee397aa5c057543ea7c5a2b98 100644 (file)
@@ -23,7 +23,12 @@ DEAL_II_NAMESPACE_OPEN
 /**
  * Namespace for the CUDA wrappers
  */
+// GCC 9 and before do not recognize the [[deprecated]] attribute
+#if defined(__GNUC__) && (__GNUC__ < 10)
 namespace CUDAWrappers
+#else
+namespace DEAL_II_DEPRECATED_EARLY CUDAWrappers
+#endif
 {
   using namespace Portable;
 } // namespace CUDAWrappers
index e3fd12082ae2d0635cdcc756040ebd3c8cd24a4b..858ea39d55266781337b8bdbd0670e46d5cf63f3 100644 (file)
 #include <deal.II/matrix_free/portable_hanging_nodes_internal.h>
 
 DEAL_II_NAMESPACE_OPEN
+// GCC 9 and before do not recognize the [[deprecated]] attribute
+#if defined(__GNUC__) && (__GNUC__ < 10)
 namespace CUDAWrappers
+#else
+namespace DEAL_II_DEPRECATED_EARLY CUDAWrappers
+#endif
 {
   using namespace Portable;
 } // namespace CUDAWrappers
index 99120f9323c4ef83091f0604e66653734c821d93..67dd8dbecb8550aa07ebf91c1c24195256a0aa85 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
+// GCC 9 and before do not recognize the [[deprecated]] attribute
+#if defined(__GNUC__) && (__GNUC__ < 10)
 namespace CUDAWrappers
+#else
+namespace DEAL_II_DEPRECATED_EARLY CUDAWrappers
+#endif
 {
   using namespace Portable;
 } // namespace CUDAWrappers
index b871f9eb31ab9a1a6f6ec0b3bae401ab22f17189..98fa41e935aca409effd5b61a0bd7fc7931981a2 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
+// GCC 9 and before do not recognize the [[deprecated]] attribute
+#if defined(__GNUC__) && (__GNUC__ < 10)
 namespace CUDAWrappers
+#else
+namespace DEAL_II_DEPRECATED_EARLY CUDAWrappers
+#endif
 {
   using namespace Portable;
 } // namespace CUDAWrappers
index a3334114f7cfe4058cd68a3276d210363d9f2e5d..ee9af7803e017c2f1f8b30e01532f2754b1c9212 100644 (file)
 DEAL_II_NAMESPACE_OPEN
 
 
+// GCC 9 and before do not recognize the [[deprecated]] attribute
+#if defined(__GNUC__) && (__GNUC__ < 10)
 namespace CUDAWrappers
+#else
+namespace DEAL_II_DEPRECATED_EARLY CUDAWrappers
+#endif
 {
   using namespace Portable;
 } // namespace CUDAWrappers

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.