Update Kokkos library in LAMMPS to v4.5.0

This commit is contained in:
Stan Moore
2024-12-13 09:23:03 -07:00
parent a78aee5731
commit 7f68aeb6d5
617 changed files with 21499 additions and 17255 deletions

View File

@ -1216,8 +1216,7 @@ struct TestComplexBesselI0K0Function {
int upper_limit_0 = N;
// FIXME_SYCL Failing for Intel GPUs, 19 is the first failing test case
#if defined(KOKKOS_ENABLE_SYCL) && defined(KOKKOS_ARCH_INTEL_GPU)
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::SYCL>)
upper_limit_0 = 19;
if (std::is_same_v<TEST_EXECSPACE, Kokkos::SYCL>) upper_limit_0 = 19;
#endif
for (int i = 1; i < upper_limit_0; i++) {
EXPECT_LE(Kokkos::abs(h_cbk0(i) - h_ref_cbk0(i)),
@ -1465,8 +1464,7 @@ struct TestComplexBesselI1K1Function {
int upper_limit_1 = N;
// FIXME_SYCL Failing for Intel GPUs, 8 is the first failing test case
#if defined(KOKKOS_ENABLE_SYCL) && defined(KOKKOS_ARCH_INTEL_GPU)
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::SYCL>)
upper_limit_1 = 8;
if (std::is_same_v<TEST_EXECSPACE, Kokkos::SYCL>) upper_limit_1 = 8;
#endif
for (int i = 1; i < upper_limit_1; i++) {
EXPECT_LE(Kokkos::abs(h_cbk1(i) - h_ref_cbk1(i)),
@ -1712,17 +1710,17 @@ struct TestComplexBesselH1Function {
h_ref_ch11(24) =
Kokkos::complex<double>(-5.430453818237824e-02, -1.530182458039000e-02);
// FIXME_HIP Disable the test when using ROCm 5.5 and 5.6 due to a known
// compiler bug
#if !defined(KOKKOS_ENABLE_HIP) || (HIP_VERSION_MAJOR != 5) || \
((HIP_VERSION_MAJOR == 5) && \
!((HIP_VERSION_MINOR == 5) || (HIP_VERSION_MINOR == 6)))
// FIXME_HIP Disable the test when using ROCm 5.5, 5.6, and 6.2 due to a
// known compiler bug
#if !(defined(KOKKOS_ENABLE_HIP) && \
((HIP_VERSION_MAJOR == 5 && HIP_VERSION_MINOR == 5) || \
(HIP_VERSION_MAJOR == 5 && HIP_VERSION_MINOR == 6) || \
(HIP_VERSION_MAJOR == 6 && HIP_VERSION_MINOR == 2)))
EXPECT_EQ(h_ref_ch10(0), h_ch10(0));
int upper_limit_10 = N;
// FIXME_SYCL Failing for Intel GPUs, 17 is the first failing test case
#if defined(KOKKOS_ENABLE_SYCL) && defined(KOKKOS_ARCH_INTEL_GPU)
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::SYCL>)
upper_limit_10 = 17;
if (std::is_same_v<TEST_EXECSPACE, Kokkos::SYCL>) upper_limit_10 = 17;
#endif
for (int i = 1; i < upper_limit_10; i++) {
EXPECT_LE(Kokkos::abs(h_ch10(i) - h_ref_ch10(i)),
@ -1734,8 +1732,7 @@ struct TestComplexBesselH1Function {
int upper_limit_11 = N;
// FIXME_SYCL Failing for Intel GPUs, 2 is the first failing test case
#if defined(KOKKOS_ENABLE_SYCL) && defined(KOKKOS_ARCH_INTEL_GPU)
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::SYCL>)
upper_limit_11 = 2;
if (std::is_same_v<TEST_EXECSPACE, Kokkos::SYCL>) upper_limit_11 = 2;
#endif
for (int i = 1; i < upper_limit_11; i++) {
EXPECT_LE(Kokkos::abs(h_ch11(i) - h_ref_ch11(i)),
@ -1912,17 +1909,17 @@ struct TestComplexBesselH2Function {
h_ref_ch21(24) =
Kokkos::complex<double>(1.629136145471347e-01, +1.530182458039000e-02);
// FIXME_HIP Disable the test when using ROCm 5.5 and 5.6 due to a known
// compiler bug
#if !defined(KOKKOS_ENABLE_HIP) || (HIP_VERSION_MAJOR != 5) || \
((HIP_VERSION_MAJOR == 5) && \
!((HIP_VERSION_MINOR == 5) || (HIP_VERSION_MINOR == 6)))
// FIXME_HIP Disable the test when using ROCm 5.5, 5.6, and 6.2 due to a
// known compiler bug
#if !(defined(KOKKOS_ENABLE_HIP) || \
((HIP_VERSION_MAJOR == 5 && HIP_VERSION_MINOR == 5) || \
(HIP_VERSION_MAJOR == 5 && HIP_VERSION_MINOR == 6) || \
(HIP_VERSION_MAJOR == 6 && HIP_VERSION_MINOR == 2)))
EXPECT_EQ(h_ref_ch20(0), h_ch20(0));
int upper_limit_20 = N;
// FIXME_SYCL Failing for Intel GPUs, 16 is the first failing test case
#if defined(KOKKOS_ENABLE_SYCL) && defined(KOKKOS_ARCH_INTEL_GPU)
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::SYCL>)
upper_limit_20 = 16;
if (std::is_same_v<TEST_EXECSPACE, Kokkos::SYCL>) upper_limit_20 = 16;
#endif
for (int i = 1; i < upper_limit_20; i++) {
EXPECT_LE(Kokkos::abs(h_ch20(i) - h_ref_ch20(i)),
@ -1934,8 +1931,7 @@ struct TestComplexBesselH2Function {
int upper_limit_21 = N;
// FIXME_SYCL Failing for Intel GPUs, 1 is the first failing test case
#if defined(KOKKOS_ENABLE_SYCL) && defined(KOKKOS_ARCH_INTEL_GPU)
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::SYCL>)
upper_limit_21 = 1;
if (std::is_same_v<TEST_EXECSPACE, Kokkos::SYCL>) upper_limit_21 = 1;
#endif
for (int i = 1; i < upper_limit_21; i++) {
EXPECT_LE(Kokkos::abs(h_ch21(i) - h_ref_ch21(i)),