diff --git a/docs/source/API/containers/DualView.rst b/docs/source/API/containers/DualView.rst index 3de707428..2b6daf8f5 100644 --- a/docs/source/API/containers/DualView.rst +++ b/docs/source/API/containers/DualView.rst @@ -41,11 +41,11 @@ Usage Device> view_type a("A", n, m); - Kokkos::deep_copy(a.d_view, 1); + Kokkos::deep_copy(a.view_device(), 1); a.template modify(); a.template sync(); - Kokkos::deep_copy(a.h_view, 2); + Kokkos::deep_copy(a.view_host(), 2); a.template modify(); a.template sync(); @@ -124,11 +124,11 @@ Description .. cppkokkos:member:: t_dev d_view - The view instance on the *device* + The view instance on the *device*, public access deprecated from Kokkos 4.6 on. .. cppkokkos:member:: t_host h_view - The view instance on the *host* + The view instance on the *host*, public access deprecated from Kokkos 4.6 on. .. cppkokkos:member:: t_modified_flags modified_flags @@ -207,6 +207,14 @@ Description dual_view_type::t_host hostView = DV.view(); + .. cppkokkos:function:: const t_host& view_host() const; + + * Return the host-accessible View. Returns the View by value with `Kokkos_ENABLE_DEPRECATED_CODE_4=ON` + + .. cppkokkos:function:: const t_dev& view_device() const; + + * Return the View on the device. Returns the View by value with `Kokkos_ENABLE_DEPRECATED_CODE_4=ON`. + .. cppkokkos:function:: template void sync(const typename Impl::enable_if<(std::is_same::value) || (std::is_same::value), int>::type& = 0); .. cppkokkos:function:: template void sync(const typename Impl::enable_if<(!std::is_same::value) || (std::is_same::value), int>::type& = 0);