Skip to content

Commit

Permalink
Fix correct use of mdspan_type
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Jul 10, 2024
1 parent 53bb59f commit 3ad814b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Kokkos_View.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class View : public Impl::BasicViewFromTraits<DataType, Properties...>::type {

KOKKOS_INLINE_FUNCTION constexpr array_layout layout()
const {
return Impl::array_layout_from_mapping<array_layout, typename base_t::mapping_type>(base_t::mapping());
return Impl::array_layout_from_mapping<array_layout, mdspan_type>(base_t::mapping());
}

KOKKOS_INLINE_FUNCTION constexpr size_t stride_0() const { return stride(0); }
Expand Down

0 comments on commit 3ad814b

Please sign in to comment.