Update Kokkos library in LAMMPS to v4.3.1
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user