Skip to content

Commit

Permalink
Fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Jun 17, 2024
1 parent 09817fa commit 557e1f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/unit_test/TestMDSpanConversion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,15 @@ struct TestViewMDSpanConversion {
}
// test conversion operator to different mdspan type
{
using const_acc_type = Kokkos::Impl::SpaceAwareAccessor<
typename ViewType::memory_space,
Kokkos::default_accessor<
const typename natural_mdspan_type::element_type>>;
using mdspan_type = Kokkos::mdspan<
const typename natural_mdspan_type::element_type,
Kokkos::dextents<typename natural_mdspan_type::index_type,
natural_mdspan_type::rank()>,
typename natural_mdspan_type::layout_type,
typename natural_mdspan_type::accessor_type>;
typename natural_mdspan_type::layout_type, const_acc_type>;
mdspan_type cvt = v;
ASSERT_EQ(cvt.data_handle(), v.data());
ASSERT_EQ(cvt.mapping(), ref_layout_mapping);
Expand Down

0 comments on commit 557e1f2

Please sign in to comment.