Skip to content

Commit

Permalink
Fix TestNumericTriats.hpp for SYCL with bfloat16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Nov 16, 2023
1 parent 9c37437 commit ee655c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/unit_test/TestNumericTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ struct TestNumericTraits {

KOKKOS_FUNCTION void operator()(Epsilon, int, int& e) const {
using Kokkos::Experimental::epsilon;
auto const eps = epsilon<T>::value;
auto const one = T(1);
T const eps = epsilon<T>::value;
T const one = 1;
// Avoid higher precision intermediate representation
compare() = one + eps;
e += (int)!(compare() != one);
Expand Down

0 comments on commit ee655c0

Please sign in to comment.