Fix rare bug in Kokkos with CUDA UVM

This commit is contained in:
Stan Moore
2022-02-25 16:45:58 -07:00
parent d848e50d0d
commit 014ad94479

View File

@ -492,7 +492,7 @@ void VerletKokkos::run(int n)
timer->stamp(Timer::KSPACE);
}
if (execute_on_host && !std::is_same<LMPHostType,LMPDeviceType>::value) {
if (execute_on_host && atomKK->k_f.h_view.data() != atomKK->k_f.d_view.data()) {
if (f_merge_copy.extent(0)<atomKK->k_f.extent(0)) {
f_merge_copy = DAT::t_f_array("VerletKokkos::f_merge_copy",atomKK->k_f.extent(0));
}