Skip to content

Commit

Permalink
Trying to uncomment old test
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Dec 28, 2023
1 parent efcea76 commit 01a9509
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions test/tstDetailsKokkosExtMinMaxReductions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,14 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(minmax_reduce, DeviceType, ARBORX_DEVICE_TYPES)
u_host(1, 1) = 5; // y
u_host(1, 2) = 6; // Z
Kokkos::deep_copy(u, u_host);
#if 0
// FIXME might be an issue with CUDA
auto const minmax_x =
KokkosExt::minmax_reduce( Kokkos::subview( u, Kokkos::ALL, 0 ) );
BOOST_TEST( std::get<0>( minmax_x ) == 1 );
BOOST_TEST( std::get<1>( minmax_x ) == 4 );
auto const minmax_y =
KokkosExt::minmax_reduce( Kokkos::subview( u, Kokkos::ALL, 1 ) );
BOOST_TEST( std::get<0>( minmax_y ) == 2 );
BOOST_TEST( std::get<1>( minmax_y ) == 5 );
#endif
auto const minmax_x =
KokkosExt::minmax_reduce(space, Kokkos::subview(u, Kokkos::ALL, 0));
BOOST_TEST(std::get<0>(minmax_x) == 1);
BOOST_TEST(std::get<1>(minmax_x) == 4);
auto const minmax_y =
KokkosExt::minmax_reduce(space, Kokkos::subview(u, Kokkos::ALL, 1));
BOOST_TEST(std::get<0>(minmax_y) == 2);
BOOST_TEST(std::get<1>(minmax_y) == 5);
}

BOOST_AUTO_TEST_CASE_TEMPLATE(min_and_max, DeviceType, ARBORX_DEVICE_TYPES)
Expand Down

0 comments on commit 01a9509

Please sign in to comment.