From c8cd5f060d0753aae79d8a151b5c762e2076810c Mon Sep 17 00:00:00 2001 From: Thomas Padioleau Date: Sat, 18 Nov 2023 19:58:13 +0100 Subject: [PATCH] Add a host only discrete_space getter --- include/ddc/discrete_space.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/ddc/discrete_space.hpp b/include/ddc/discrete_space.hpp index 54e0df3b4..9110fdd24 100644 --- a/include/ddc/discrete_space.hpp +++ b/include/ddc/discrete_space.hpp @@ -206,4 +206,10 @@ KOKKOS_FORCEINLINE_FUNCTION detail::ddim_impl_t const& discre } } +template +detail::ddim_impl_t const& host_discrete_space() +{ + return detail::g_discrete_space_dual->get_host(); +} + } // namespace ddc