Skip to content

Commit

Permalink
Add a host only discrete_space getter
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Nov 18, 2023
1 parent a504c0f commit c8cd5f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/ddc/discrete_space.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,10 @@ KOKKOS_FORCEINLINE_FUNCTION detail::ddim_impl_t<DDim, MemorySpace> const& discre
}
}

template <class DDim>
detail::ddim_impl_t<DDim, Kokkos::HostSpace> const& host_discrete_space()
{
return detail::g_discrete_space_dual<DDim>->get_host();
}

} // namespace ddc

0 comments on commit c8cd5f0

Please sign in to comment.