Update Kokkos library in LAMMPS to v3.7.0

This commit is contained in:
Stan Gerald Moore
2022-10-04 14:04:40 -06:00
parent dd072f7e08
commit f9f9e44f2d
653 changed files with 41432 additions and 33597 deletions

View File

@ -76,8 +76,15 @@ struct UnorderedMapRehash {
*this);
}
KOKKOS_INLINE_FUNCTION
void operator()(size_type i) const {
template <typename Dummy = typename map_type::value_type>
KOKKOS_INLINE_FUNCTION std::enable_if_t<std::is_void<Dummy>::value>
operator()(size_type i) const {
if (m_src.valid_at(i)) m_dst.insert(m_src.key_at(i));
}
template <typename Dummy = typename map_type::value_type>
KOKKOS_INLINE_FUNCTION std::enable_if_t<!std::is_void<Dummy>::value>
operator()(size_type i) const {
if (m_src.valid_at(i)) m_dst.insert(m_src.key_at(i), m_src.value_at(i));
}
};