Skip to content

Commit

Permalink
use EXPECT_NEAR_KK_REL for comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Yuuichi Asahi <[email protected]>
  • Loading branch information
Yuuichi Asahi committed Jan 13, 2025
1 parent 98f0c04 commit 8500939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batched/dense/unit_test/Test_Batched_SerialTbsv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void impl_test_batched_tbsv_analytical(const std::size_t N) {
auto h_x_ref = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace(), x_ref);
for (std::size_t ib = 0; ib < N; ib++) {
for (std::size_t j = 0; j < BlkSize; j++) {
EXPECT_NEAR_KK(h_x0(ib, j), h_x_ref(ib, j), eps);
Test::EXPECT_NEAR_KK_REL(h_x0(ib, j), h_x_ref(ib, j), eps);
}
}

Expand All @@ -261,7 +261,7 @@ void impl_test_batched_tbsv_analytical(const std::size_t N) {
Kokkos::deep_copy(h_x0, x0);
for (std::size_t ib = 0; ib < N; ib++) {
for (std::size_t j = 0; j < BlkSize; j++) {
EXPECT_NEAR_KK(h_x0(ib, j), h_x_ref(ib, j), eps);
Test::EXPECT_NEAR_KK_REL(h_x0(ib, j), h_x_ref(ib, j), eps);
}
}
}
Expand Down

0 comments on commit 8500939

Please sign in to comment.