Skip to content

Commit

Permalink
kokkos#295: fix ambiguous constructor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Nov 10, 2023
1 parent 38c7841 commit 3bd4eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_mdarray_ctors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ TEST(TestMdarrayCtorFromContainerSizes, 1d_static) {
using mda_t = KokkosEx::mdarray<int, Kokkos::extents<unsigned,1>, Kokkos::layout_right, std::array<int,1>>;
// ptr to fill, extents, is_layout_right
mdarray_values<1>::fill(d.data(),Kokkos::extents<unsigned,1>(),true);
mda_t m({}, d);
mda_t m(Kokkos::extents<unsigned, 1>{}, d);
// mdarray, rank, rank_dynamic, ext0, ext1, ext2, stride0, stride1, stride2, ptr, ptr_matches, exhaustive
check_correctness(m, 1, 0, 1, 0, 0, 1, 0, 0, d.data(), false, true);
}
Expand All @@ -257,7 +257,7 @@ TEST(TestMdarrayCtorFromContainerSizes, 2d_static) {
std::array<int, 6> d{42,43,44,3,4,41};
// ptr to fill, extents, is_layout_right
mdarray_values<2>::fill(d.data(),Kokkos::extents<int, 2,3>(),true);
KokkosEx::mdarray<int, Kokkos::extents<int, 2,3>, Kokkos::layout_right, std::array<int,6>> m({},d);
KokkosEx::mdarray<int, Kokkos::extents<int, 2,3>, Kokkos::layout_right, std::array<int,6>> m(Kokkos::extents<int, 2,3>{},d);
// mdarray, rank, rank_dynamic, ext0, ext1, ext2, stride0, stride1, stride2, ptr, ptr_matches, exhaustive
check_correctness(m, 2, 0, 2, 3, 0, 3, 1, 0, d.data(), false, true);
}
Expand Down

0 comments on commit 3bd4eae

Please sign in to comment.