Skip to content

Commit

Permalink
kokkos#6805: use the extent value for constructing static extents in …
Browse files Browse the repository at this point in the history
…layouts rather than 0
  • Loading branch information
nmm0 committed Apr 11, 2024
1 parent 3c7e3aa commit 3b3fbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/View/MDSpan/Kokkos_MDSpan_Layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct LayoutFromArrayLayout<Kokkos::LayoutStride> {
template <class Extents>
KOKKOS_INLINE_FUNCTION auto dimension_from_extent(const Extents &e,
std::size_t r) noexcept {
return Extents::static_extent(r) == dynamic_extent ? e.extent(r) : 0;
return e.extent(r);
}

template <class ArrayLayout, class MDSpanType>
Expand Down

0 comments on commit 3b3fbe7

Please sign in to comment.