diff --git a/include/ddc/detail/dual_discretization.hpp b/include/ddc/detail/dual_discretization.hpp index a9e37c337..7460cf916 100644 --- a/include/ddc/detail/dual_discretization.hpp +++ b/include/ddc/detail/dual_discretization.hpp @@ -9,13 +9,6 @@ #include -#if defined(KOKKOS_ENABLE_CUDA) -#include -#endif -#if defined(KOKKOS_ENABLE_HIP) -#include -#endif - namespace ddc::detail { #if defined(KOKKOS_ENABLE_CUDA) @@ -50,7 +43,7 @@ class DualDiscretization } template - KOKKOS_FUNCTION typename DDim::template Impl const& get() + typename DDim::template Impl const& get() { if constexpr (std::is_same_v) { return m_host; @@ -65,12 +58,12 @@ class DualDiscretization } } - KOKKOS_FUNCTION DDimImplHost const& get_host() + DDimImplHost const& get_host() { return m_host; } - KOKKOS_FUNCTION DDimImplDevice const& get_device() + DDimImplDevice const& get_device() { #if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP) return m_device_on_host;