Fix rare bug in Kokkos with CUDA UVM
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user