Skip to content

Commit

Permalink
Merge pull request #2007 from lucbv/bhalf_t_fix
Browse files Browse the repository at this point in the history
bhalf_t fix for isnan function
  • Loading branch information
lucbv authored Oct 19, 2023
2 parents ab0a32d + 72a8d71 commit b9f3d78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/src/Kokkos_ArithTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,13 @@ class ArithTraits<Kokkos::Experimental::bhalf_t> {
static KOKKOS_FUNCTION mag_type rmax() {
return Kokkos::Experimental::cast_to_bhalf(KOKKOSKERNELS_IMPL_BF16_MAX);
}
#else
#if defined(KOKKOS_ENABLE_SYCL) || defined(KOKKOS_ENABLE_HIP)
KOKKOSKERNELS_ARITHTRAITS_HALF_FP(KOKKOS_FUNCTION)
#else
KOKKOSKERNELS_ARITHTRAITS_REAL_FP(KOKKOS_FUNCTION)
#endif
#endif
};
#endif // #if defined(KOKKOS_BHALF_T_IS_FLOAT) && !KOKKOS_BHALF_T_IS_FLOAT

Expand Down

0 comments on commit b9f3d78

Please sign in to comment.