Allow PME coordinate send before H2D coordinate transfer
authorAlan Gray <alangraygerrit@gmail.com>
Sun, 5 Jan 2020 20:14:39 +0000 (12:14 -0800)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 3 Mar 2020 10:40:06 +0000 (11:40 +0100)
commitddbaf0b92c85b36e86d60c2cc515db86617cd57d
tree6f56cc17dce140eac9fa3d13c78257a5c1eda09e
parent627408db32cfd90f42d4def3c8a8b736a52bd09b
Allow PME coordinate send before H2D coordinate transfer

The introduction of the GPU PME-PP communication functionality had the
side effect of delaying the PME coordinate send until after the H2D
coordinate transfer, even on the default code path. This patch allows
the PME transfer to occur in its original location when the send is
not originating from GPU memory. This is a lightweight solution,
without any new functionality, suitable for the release branch. (There
will be a more comprehensive change in the master branch which also
extends the GPU PME-PP communication functionality.)

Implements #3159

Change-Id: Ic30c154e04bb4c2846bbad3de603f879a71b9133
src/gromacs/mdlib/sim_util.cpp