From: Daniel Arndt Date: Wed, 25 Oct 2023 17:46:03 +0000 (-0400) Subject: Only include Kokkos_Abort.hpp in exceptions.h for Kokkos 4.2.0 and higher X-Git-Tag: relicensing~361^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16189%2Fhead;p=dealii.git Only include Kokkos_Abort.hpp in exceptions.h for Kokkos 4.2.0 and higher --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 1b9594e109..9a2600893c 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -19,7 +19,12 @@ #include DEAL_II_DISABLE_EXTRA_DIAGNOSTICS -#include +#include +#if KOKKOS_VERSION >= 40200 +# include +#else +# include +#endif DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #include