Update Kokkos library in LAMMPS to v4.3.0
This commit is contained in:
@ -1213,13 +1213,13 @@ struct TestComplexBesselI0K0Function {
|
||||
}
|
||||
|
||||
EXPECT_EQ(h_ref_cbk0(0), h_cbk0(0));
|
||||
int upper_limit = N;
|
||||
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 = 19;
|
||||
upper_limit_0 = 19;
|
||||
#endif
|
||||
for (int i = 1; i < upper_limit; i++) {
|
||||
for (int i = 1; i < upper_limit_0; i++) {
|
||||
EXPECT_LE(Kokkos::abs(h_cbk0(i) - h_ref_cbk0(i)),
|
||||
Kokkos::abs(h_ref_cbk0(i)) * 1e-13)
|
||||
<< "at index " << i;
|
||||
@ -1462,13 +1462,13 @@ struct TestComplexBesselI1K1Function {
|
||||
}
|
||||
|
||||
EXPECT_EQ(h_ref_cbk1(0), h_cbk1(0));
|
||||
int upper_limit = N;
|
||||
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 = 8;
|
||||
upper_limit_1 = 8;
|
||||
#endif
|
||||
for (int i = 1; i < upper_limit; i++) {
|
||||
for (int i = 1; i < upper_limit_1; i++) {
|
||||
EXPECT_LE(Kokkos::abs(h_cbk1(i) - h_ref_cbk1(i)),
|
||||
Kokkos::abs(h_ref_cbk1(i)) * 1e-13)
|
||||
<< "at index " << i;
|
||||
@ -1718,20 +1718,26 @@ struct TestComplexBesselH1Function {
|
||||
((HIP_VERSION_MAJOR == 5) && \
|
||||
!((HIP_VERSION_MINOR == 5) || (HIP_VERSION_MINOR == 6)))
|
||||
EXPECT_EQ(h_ref_ch10(0), h_ch10(0));
|
||||
for (int i = 1; i < N; i++) {
|
||||
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;
|
||||
#endif
|
||||
for (int i = 1; i < upper_limit_10; i++) {
|
||||
EXPECT_LE(Kokkos::abs(h_ch10(i) - h_ref_ch10(i)),
|
||||
Kokkos::abs(h_ref_ch10(i)) * 1e-13)
|
||||
<< "at index " << i;
|
||||
}
|
||||
|
||||
EXPECT_EQ(h_ref_ch11(0), h_ch11(0));
|
||||
int upper_limit = N;
|
||||
// FIXME_SYCL Failing for Intel GPUs, 16 is the first failing test case
|
||||
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 = 16;
|
||||
upper_limit_11 = 2;
|
||||
#endif
|
||||
for (int i = 1; i < upper_limit; i++) {
|
||||
for (int i = 1; i < upper_limit_11; i++) {
|
||||
EXPECT_LE(Kokkos::abs(h_ch11(i) - h_ref_ch11(i)),
|
||||
Kokkos::abs(h_ref_ch11(i)) * 1e-13)
|
||||
<< "at index " << i;
|
||||
@ -1912,19 +1918,26 @@ struct TestComplexBesselH2Function {
|
||||
((HIP_VERSION_MAJOR == 5) && \
|
||||
!((HIP_VERSION_MINOR == 5) || (HIP_VERSION_MINOR == 6)))
|
||||
EXPECT_EQ(h_ref_ch20(0), h_ch20(0));
|
||||
for (int i = 1; i < N; i++) {
|
||||
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;
|
||||
#endif
|
||||
for (int i = 1; i < upper_limit_20; i++) {
|
||||
EXPECT_LE(Kokkos::abs(h_ch20(i) - h_ref_ch20(i)),
|
||||
Kokkos::abs(h_ref_ch20(i)) * 1e-13);
|
||||
Kokkos::abs(h_ref_ch20(i)) * 1e-13)
|
||||
<< "at index " << i;
|
||||
}
|
||||
|
||||
EXPECT_EQ(h_ref_ch21(0), h_ch21(0));
|
||||
int upper_limit = N;
|
||||
// FIXME_SYCL Failing for Intel GPUs, 17 is the first failing test case
|
||||
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 = 17;
|
||||
upper_limit_21 = 1;
|
||||
#endif
|
||||
for (int i = 1; i < upper_limit; i++) {
|
||||
for (int i = 1; i < upper_limit_21; i++) {
|
||||
EXPECT_LE(Kokkos::abs(h_ch21(i) - h_ref_ch21(i)),
|
||||
Kokkos::abs(h_ref_ch21(i)) * 1e-13)
|
||||
<< "at index " << i;
|
||||
@ -1954,31 +1967,61 @@ TEST(TEST_CATEGORY, mathspecialfunc_errorfunc) {
|
||||
#endif
|
||||
|
||||
TEST(TEST_CATEGORY, mathspecialfunc_cbesselj0y0) {
|
||||
#if defined(KOKKOS_ENABLE_OPENMPTARGET) && defined(KOKKOS_ARCH_INTEL_GPU)
|
||||
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::OpenMPTarget>)
|
||||
GTEST_SKIP() << "skipping since test is known to fail with OpenMPTarget on "
|
||||
"Intel GPUs"; // FIXME_OPENMPTARGET
|
||||
#endif
|
||||
TestComplexBesselJ0Y0Function<TEST_EXECSPACE> test;
|
||||
test.testit();
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY, mathspecialfunc_cbesselj1y1) {
|
||||
#if defined(KOKKOS_ENABLE_OPENMPTARGET) && defined(KOKKOS_ARCH_INTEL_GPU)
|
||||
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::OpenMPTarget>)
|
||||
GTEST_SKIP() << "skipping since test is known to fail with OpenMPTarget on "
|
||||
"Intel GPUs"; // FIXME_OPENMPTARGET
|
||||
#endif
|
||||
TestComplexBesselJ1Y1Function<TEST_EXECSPACE> test;
|
||||
test.testit();
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY, mathspecialfunc_cbesseli0k0) {
|
||||
#if defined(KOKKOS_ENABLE_OPENMPTARGET) && defined(KOKKOS_ARCH_INTEL_GPU)
|
||||
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::OpenMPTarget>)
|
||||
GTEST_SKIP() << "skipping since test is known to fail with OpenMPTarget on "
|
||||
"Intel GPUs"; // FIXME_OPENMPTARGET
|
||||
#endif
|
||||
TestComplexBesselI0K0Function<TEST_EXECSPACE> test;
|
||||
test.testit();
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY, mathspecialfunc_cbesseli1k1) {
|
||||
#if defined(KOKKOS_ENABLE_OPENMPTARGET) && defined(KOKKOS_ARCH_INTEL_GPU)
|
||||
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::OpenMPTarget>)
|
||||
GTEST_SKIP() << "skipping since test is known to fail with OpenMPTarget on "
|
||||
"Intel GPUs"; // FIXME_OPENMPTARGET
|
||||
#endif
|
||||
TestComplexBesselI1K1Function<TEST_EXECSPACE> test;
|
||||
test.testit();
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY, mathspecialfunc_cbesselh1stkind) {
|
||||
#if defined(KOKKOS_ENABLE_OPENMPTARGET) && defined(KOKKOS_ARCH_INTEL_GPU)
|
||||
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::OpenMPTarget>)
|
||||
GTEST_SKIP() << "skipping since test is known to fail with OpenMPTarget on "
|
||||
"Intel GPUs"; // FIXME_OPENMPTARGET
|
||||
#endif
|
||||
TestComplexBesselH1Function<TEST_EXECSPACE> test;
|
||||
test.testit();
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY, mathspecialfunc_cbesselh2ndkind) {
|
||||
#if defined(KOKKOS_ENABLE_OPENMPTARGET) && defined(KOKKOS_ARCH_INTEL_GPU)
|
||||
if (std::is_same_v<TEST_EXECSPACE, Kokkos::Experimental::OpenMPTarget>)
|
||||
GTEST_SKIP() << "skipping since test is known to fail with OpenMPTarget on "
|
||||
"Intel GPUs"; // FIXME_OPENMPTARGET
|
||||
#endif
|
||||
TestComplexBesselH2Function<TEST_EXECSPACE> test;
|
||||
test.testit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user