diff --git a/src/KOKKOS/comm_kokkos.cpp b/src/KOKKOS/comm_kokkos.cpp index c496065ea0..52829356d9 100644 --- a/src/KOKKOS/comm_kokkos.cpp +++ b/src/KOKKOS/comm_kokkos.cpp @@ -637,9 +637,8 @@ void CommKokkos::exchange_device() k_exchange_copylist.h_view(i) = -1; } - auto k_exchange_copylist_short = Kokkos::subview(k_exchange_copylist,k_count.h_view()); - k_exchange_copylist_short.template modify(); - k_exchange_copylist_short.template sync(); + k_exchange_copylist.modify(); + k_exchange_copylist.sync(); nsend = k_count.h_view(); if (nsend > maxsend) grow_send_kokkos(nsend,1); nsend =