Skip to content

Commit

Permalink
kokkos#295: fix more ambiguous constructor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Nov 10, 2023
1 parent 3bd4eae commit 10df9bf
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 @@ -294,7 +294,7 @@ TEST(TestMdarrayCtorFromMoveContainerSizes, 1d_static) {
std::array<int, 1> d{42};
// ptr to fill, extents, is_layout_right
mdarray_values<1>::fill(d.data(),Kokkos::extents<int, 1>(),true);
KokkosEx::mdarray<int, Kokkos::extents<int, 1>, Kokkos::layout_right, std::array<int,1>> m({},std::move(d));
KokkosEx::mdarray<int, Kokkos::extents<int, 1>, Kokkos::layout_right, std::array<int,1>> m(Kokkos::extents<int, 1>{},std::move(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, nullptr, false, true);
}
Expand All @@ -303,7 +303,7 @@ TEST(TestMdarrayCtorFromMoveContainerSizes, 2d_static) {
std::array<int, 6> d{42,1,2,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({},std::move(d));
KokkosEx::mdarray<int, Kokkos::extents<int, 2,3>, Kokkos::layout_right, std::array<int,6>> m(Kokkos::extents<int, 2,3>{},std::move(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, nullptr, false, true);
}
Expand Down

0 comments on commit 10df9bf

Please sign in to comment.