Skip to content

Commit

Permalink
Remove unnecessary diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed May 31, 2024
1 parent ccc61bb commit 4de6a92
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ add_subdirectory(dot_product)
add_subdirectory(tiled_layout)
add_subdirectory(restrict_accessor)
add_subdirectory(aligned_accessor)
add_subdirectory(submdspan)
4 changes: 0 additions & 4 deletions include/experimental/__p2630_bits/submdspan_mapping.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ template <class LayoutMapping> struct submdspan_mapping_result {
};

namespace detail {
using detail::first_of;
using detail::stride_of;
using detail::inv_map_rank;

// We use const Slice& and not Slice&& because the various
// submdspan_mapping_impl overloads use their slices arguments
// multiple times. This makes perfect forwarding not useful, but we
Expand Down
2 changes: 1 addition & 1 deletion include/experimental/__p2642_bits/layout_padded.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class layout_left_padded<PaddingValue>::mapping {
for (rank_type r = 1; r < extents_type::rank(); ++r) {
value *= exts.extent(r);
}
return value - (padded_stride.value(0) - exts.extent(0));
return value;
}
}

Expand Down
1 change: 0 additions & 1 deletion tests/test_layout_padded_left.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,3 @@ TEST(LayoutRightTests, access) {
Kokkos::extents<std::size_t>>({}, 4);
ASSERT_EQ(mapping6(), 0);
}

0 comments on commit 4de6a92

Please sign in to comment.