Do not allow AtomLocality::All for coordinates and velocities transfer.
[alexxy/gromacs.git] / src / gromacs / ewald / pme_only.cpp
index 0e67991867eb750d8bb499a27b24887d84236b33..8e33845218145d6a0b85ff6138c275301cc3bb02 100644 (file)
@@ -759,7 +759,8 @@ int gmx_pmeonly(struct gmx_pme_t*               pme,
             pme_gpu_prepare_computation(pme, box, wcycle, stepWork);
             if (!pme_pp->useGpuDirectComm)
             {
-                stateGpu->copyCoordinatesToGpu(gmx::ArrayRef<gmx::RVec>(pme_pp->x), gmx::AtomLocality::All);
+                stateGpu->copyCoordinatesToGpu(gmx::ArrayRef<gmx::RVec>(pme_pp->x),
+                                               gmx::AtomLocality::Local);
             }
             // On the separate PME rank we do not need a synchronizer as we schedule everything in a single stream
             // TODO: with pme on GPU the receive should make a list of synchronizers and pass it here #3157