From: Bruno Turcksin Date: Fri, 9 Feb 2024 14:48:57 +0000 (-0500) Subject: Deprecate CUDAWrappers if the compiler supports it X-Git-Tag: relicensing~43^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67400d8caff2b54cdb740ece510ee1b36017162b;p=dealii.git Deprecate CUDAWrappers if the compiler supports it --- diff --git a/include/deal.II/matrix_free/cuda_fe_evaluation.h b/include/deal.II/matrix_free/cuda_fe_evaluation.h index 041fb7d748..81474b1409 100644 --- a/include/deal.II/matrix_free/cuda_fe_evaluation.h +++ b/include/deal.II/matrix_free/cuda_fe_evaluation.h @@ -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 diff --git a/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h b/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h index e3fd12082a..858ea39d55 100644 --- a/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h +++ b/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h @@ -19,7 +19,12 @@ #include 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 diff --git a/include/deal.II/matrix_free/cuda_matrix_free.h b/include/deal.II/matrix_free/cuda_matrix_free.h index 99120f9323..67dd8dbecb 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.h @@ -21,7 +21,12 @@ 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 diff --git a/include/deal.II/matrix_free/cuda_matrix_free.templates.h b/include/deal.II/matrix_free/cuda_matrix_free.templates.h index b871f9eb31..98fa41e935 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.templates.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.templates.h @@ -21,7 +21,12 @@ 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 diff --git a/include/deal.II/matrix_free/cuda_tensor_product_kernels.h b/include/deal.II/matrix_free/cuda_tensor_product_kernels.h index a3334114f7..ee9af7803e 100644 --- a/include/deal.II/matrix_free/cuda_tensor_product_kernels.h +++ b/include/deal.II/matrix_free/cuda_tensor_product_kernels.h @@ -23,7 +23,12 @@ 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