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

@ -163,7 +163,8 @@ struct TestFind {
KOKKOS_INLINE_FUNCTION
void operator()(typename execution_space::size_type i,
value_type &errors) const {
const bool expect_to_find_i = (i < m_max_key);
const bool expect_to_find_i =
(i < typename execution_space::size_type(m_max_key));
const bool exists = m_map.exists(i);
@ -293,10 +294,11 @@ void test_deep_copy(uint32_t num_nodes) {
}
}
// FIXME_HIP wrong result in CI but works locally
#ifndef KOKKOS_ENABLE_HIP
// FIXME_SYCL wrong results on Nvidia GPUs but correct on Host and Intel GPUs
// FIXME_HIP
// WORKAROUND MSVC
#ifndef _WIN32
#if !(defined(KOKKOS_ENABLE_HIP) && (HIP_VERSION < 401)) && \
!defined(_WIN32) && !defined(KOKKOS_ENABLE_SYCL)
TEST(TEST_CATEGORY, UnorderedMap_insert) {
for (int i = 0; i < 500; ++i) {
test_insert<TEST_EXECSPACE>(100000, 90000, 100, true);
@ -304,7 +306,6 @@ TEST(TEST_CATEGORY, UnorderedMap_insert) {
}
}
#endif
#endif
TEST(TEST_CATEGORY, UnorderedMap_failed_insert) {
for (int i = 0; i < 1000; ++i) test_failed_insert<TEST_EXECSPACE>(10000);