diff --git a/core/src/View/MDSpan/Kokkos_MDSpan_Layout.hpp b/core/src/View/MDSpan/Kokkos_MDSpan_Layout.hpp index c2d0783c3fc..8431a4e1ceb 100644 --- a/core/src/View/MDSpan/Kokkos_MDSpan_Layout.hpp +++ b/core/src/View/MDSpan/Kokkos_MDSpan_Layout.hpp @@ -27,29 +27,6 @@ static_assert(false, #include namespace Kokkos::Impl { -template -struct ArrayLayoutFromLayout; - -template -struct ArrayLayoutFromLayout> { - using type = Kokkos::LayoutLeft; - static constexpr std::integral_constant(padding_value)> - padding = {}; -}; - -template -struct ArrayLayoutFromLayout> { - using type = Kokkos::LayoutRight; - static constexpr std::integral_constant(padding_value)> - padding = {}; -}; - -template <> -struct ArrayLayoutFromLayout { - using type = Kokkos::LayoutStride; -}; template struct LayoutFromArrayLayout; @@ -69,17 +46,6 @@ struct LayoutFromArrayLayout { using type = layout_stride; }; -template -struct ViewOffsetFromExtents { - using value_type = T; - using data_type = typename DataTypeFromExtents::type; - using array_layout = typename ArrayLayoutFromLayout::type; - using data_analysis = - Kokkos::Impl::ViewDataAnalysis; - using type = - Kokkos::Impl::ViewOffset; -}; - /// Convert from a mdspan extent to a Kokkos extent, inserting 0s for static /// extents template @@ -150,15 +116,6 @@ KOKKOS_INLINE_FUNCTION auto mapping_from_view_mapping(const VM &view_mapping) { } } -template -KOKKOS_INLINE_FUNCTION auto view_offset_from_mdspan( - const mdspan &mds) { - using offset_type = - typename ViewOffsetFromExtents::type; - static constexpr auto padding = ArrayLayoutFromLayout::padding; - return offset_type(padding, array_layout_from_mdspan(mds)); -}; } // namespace Kokkos::Impl #endif // KOKKOS_EXPERIMENTAL_MDSPAN_LAYOUT_HPP