Skip to content

Commit

Permalink
Fix guard for isnan test for bhalf_t
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Sep 11, 2023
1 parent ba1bd23 commit 732d392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unit_test/TestMathematicalFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,6 @@ struct TestIsNaN {
++e;
KOKKOS_IMPL_DO_NOT_USE_PRINTF("failed isnan(KE::half_t)\n");
}
#endif
if (isnan(static_cast<KE::bhalf_t>(2.f))
#if !defined(KOKKOS_ENABLE_CUDA)
|| !isnan(quiet_NaN<KE::bhalf_t>::value) ||
Expand All @@ -1585,6 +1584,7 @@ struct TestIsNaN {
++e;
KOKKOS_IMPL_DO_NOT_USE_PRINTF("failed isnan(KE::bhalf_t)\n");
}
#endif
if (isnan(3.)
#ifndef KOKKOS_COMPILER_NVHPC // FIXME_NVHPC 23.7
|| !isnan(quiet_NaN<double>::value) ||
Expand Down

0 comments on commit 732d392

Please sign in to comment.