Update Kokkos library in LAMMPS to v4.6.0
This commit is contained in:
@ -281,7 +281,7 @@ struct test_random_scalar {
|
||||
double covariance_eps =
|
||||
result.covariance / num_draws / 2 / variance_expect;
|
||||
#if defined(KOKKOS_BHALF_T_IS_FLOAT) && !KOKKOS_BHALF_T_IS_FLOAT
|
||||
if (!std::is_same<Scalar, Kokkos::Experimental::bhalf_t>::value) {
|
||||
if (!std::is_same_v<Scalar, Kokkos::Experimental::bhalf_t>) {
|
||||
#endif
|
||||
EXPECT_LT(std::abs(mean_eps), tolerance);
|
||||
EXPECT_LT(std::abs(variance_eps), 1.5 * tolerance);
|
||||
@ -312,7 +312,7 @@ struct test_random_scalar {
|
||||
(result.covariance / HIST_DIM1D - covariance_expect) / mean_expect;
|
||||
|
||||
#if defined(KOKKOS_HALF_T_IS_FLOAT) && !KOKKOS_HALF_T_IS_FLOAT
|
||||
if (std::is_same<Scalar, Kokkos::Experimental::half_t>::value) {
|
||||
if (std::is_same_v<Scalar, Kokkos::Experimental::half_t>) {
|
||||
mean_eps_expect = 0.0003;
|
||||
variance_eps_expect = 1.0;
|
||||
covariance_eps_expect = 5.0e4;
|
||||
@ -320,7 +320,7 @@ struct test_random_scalar {
|
||||
#endif
|
||||
|
||||
#if defined(KOKKOS_BHALF_T_IS_FLOAT) && !KOKKOS_BHALF_T_IS_FLOAT
|
||||
if (!std::is_same<Scalar, Kokkos::Experimental::bhalf_t>::value) {
|
||||
if (!std::is_same_v<Scalar, Kokkos::Experimental::bhalf_t>) {
|
||||
#endif
|
||||
EXPECT_LT(std::abs(mean_eps), mean_eps_expect);
|
||||
EXPECT_LT(std::abs(variance_eps), variance_eps_expect);
|
||||
@ -358,13 +358,13 @@ struct test_random_scalar {
|
||||
(result.covariance / HIST_DIM1D - covariance_expect) / mean_expect;
|
||||
|
||||
#if defined(KOKKOS_HALF_T_IS_FLOAT) && !KOKKOS_HALF_T_IS_FLOAT
|
||||
if (std::is_same<Scalar, Kokkos::Experimental::half_t>::value) {
|
||||
if (std::is_same_v<Scalar, Kokkos::Experimental::half_t>) {
|
||||
variance_factor = 7;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(KOKKOS_BHALF_T_IS_FLOAT) && !KOKKOS_BHALF_T_IS_FLOAT
|
||||
if (!std::is_same<Scalar, Kokkos::Experimental::bhalf_t>::value) {
|
||||
if (!std::is_same_v<Scalar, Kokkos::Experimental::bhalf_t>) {
|
||||
#endif
|
||||
EXPECT_LT(std::abs(mean_eps), tolerance);
|
||||
EXPECT_LT(std::abs(variance_eps), variance_factor);
|
||||
|
||||
Reference in New Issue
Block a user