Skip to content

Commit

Permalink
Add comment in test
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Feb 16, 2023
1 parent c43e45e commit 6e36acf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/unit_test/TestViewSubview.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2120,6 +2120,8 @@ struct TestSubviewMemoryTraitsConstruction {
std::pair<int, int> range(3, 5);
auto sv = Kokkos::subview<memory_traits_type>(v, range);

// check that the subview memory traits are the same as the original view
// (with the Aligned trait stripped).
if constexpr (memory_traits_type::is_aligned)
static_assert(decltype(sv)::memory_traits::value + Kokkos::Aligned ==
memory_traits_type::value);
Expand Down

0 comments on commit 6e36acf

Please sign in to comment.