Skip to content

Commit

Permalink
Merge pull request kokkos#6608 from masterleinad/fix_numeric_traits_b…
Browse files Browse the repository at this point in the history
…float16

Fix TestNumericTriats.hpp for SYCL with bfloat16 support
  • Loading branch information
dalg24 authored Nov 22, 2023
2 parents a4720ce + ee655c0 commit f1d4666
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 f1d4666

Please sign in to comment.