Update Kokkos library in LAMMPS to v3.4.0

This commit is contained in:
Stan Gerald Moore
2021-04-26 16:28:19 -06:00
parent 39f3c1684f
commit 692da3bf88
358 changed files with 16375 additions and 10003 deletions

View File

@ -1145,8 +1145,6 @@ class TestViewAPI {
// T v2 = hx( 0, 0 ); // Generates compile error as intended.
// hx( 0, 0 ) = v2; // Generates compile error as intended.
// FIXME_SYCL requires MDRange policy
#ifndef KOKKOS_ENABLE_SYCL
// Testing with asynchronous deep copy with respect to device
{
size_t count = 0;
@ -1249,7 +1247,6 @@ class TestViewAPI {
ASSERT_EQ(hx(ip, i1, i2, i3), T(0));
}
}
#endif
dz = dx;
ASSERT_EQ(dx, dz);
@ -1481,12 +1478,6 @@ class TestViewAPI {
if (std::is_same<typename dView1::memory_space,
Kokkos::Experimental::OpenMPTargetSpace>::value)
return;
#endif
// FIXME_SYCL
#ifdef KOKKOS_ENABLE_SYCL
if (std::is_same<typename dView1::memory_space,
Kokkos::Experimental::SYCLDeviceUSMSpace>::value)
return;
#endif
auto alloc_size = std::numeric_limits<size_t>::max() - 42;
try {
@ -1504,10 +1495,21 @@ class TestViewAPI {
// quickly.
if (msg.find("is not a valid size") != std::string::npos) {
ASSERT_PRED_FORMAT2(::testing::IsSubstring, "is not a valid size", msg);
} else {
// Otherwise, there has to be some sort of "insufficient memory" error
} else
#ifdef KOKKOS_ENABLE_SYCL
if (msg.find("insufficient memory") != std::string::npos)
#endif
{
ASSERT_PRED_FORMAT2(::testing::IsSubstring, "insufficient memory", msg);
}
// SYCL cannot tell the reason why a memory allocation failed
#ifdef KOKKOS_ENABLE_SYCL
else {
// Otherwise, there has to be some sort of "unknown error" error
ASSERT_PRED_FORMAT2(::testing::IsSubstring,
"because of an unknown error.", msg);
}
#endif
}
}
};