Update Kokkos library in LAMMPS to v4.3.1

This commit is contained in:
Stan Gerald Moore
2024-05-15 14:14:08 -06:00
parent 008a8fcb11
commit a495aff480
20 changed files with 164 additions and 97 deletions

View File

@ -399,9 +399,14 @@ sort_device_view_with_comparator(
using ViewType = Kokkos::View<DataType, Properties...>;
using MemSpace = typename ViewType::memory_space;
// Note with HIP unified memory this code path is still the right thing to do
// if we end up here when RocThrust is not enabled.
// The create_mirror_view_and_copy will do the right thing (no copy).
#ifndef KOKKOS_ENABLE_IMPL_HIP_UNIFIED_MEMORY
static_assert(!SpaceAccessibility<HostSpace, MemSpace>::accessible,
"Impl::sort_device_view_with_comparator: should not be called "
"on a view that is already accessible on the host");
#endif
copy_to_host_run_stdsort_copy_back(exec, view, comparator);
}