From 6b0508465b7cb5ab3ccffd25841adeaef2155e4b Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 27 Aug 2024 08:26:57 +0200 Subject: [PATCH] Use SpaceAccessibility to check if execution space is a Host space --- common/src/KokkosFFT_traits.hpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/common/src/KokkosFFT_traits.hpp b/common/src/KokkosFFT_traits.hpp index 59a56163..59bf6afa 100644 --- a/common/src/KokkosFFT_traits.hpp +++ b/common/src/KokkosFFT_traits.hpp @@ -263,21 +263,12 @@ struct complex_view_type { template struct is_AnyHostSpace : std::false_type {}; -#if defined(KOKKOS_ENABLE_SERIAL) -template -struct is_AnyHostSpace< - ExecutionSpace, - std::enable_if_t< - std::is_same_v || - std::is_same_v>> - : std::true_type {}; -#else + template struct is_AnyHostSpace>> + std::enable_if_t::accessible>> : std::true_type {}; -#endif /// \brief Helper to check if the ExecutionSpace is one of the enabled /// HostExecutionSpaces