Allow overlapping CPU force H2D with compute
authorSzilárd Páll <pall.szilard@gmail.com>
Mon, 2 Dec 2019 18:29:28 +0000 (19:29 +0100)
committerBerk Hess <hess@kth.se>
Thu, 12 Dec 2019 21:12:25 +0000 (22:12 +0100)
commit86a27bc2bba63500b679b30c8ad7913fc5425680
tree626aac3c0647f05ad439f5670327b5f5ddde96fe
parent41b79d8a387d71b5e50350a8727b83c39cb4129f
Allow overlapping CPU force H2D with compute

The reduction orchestration code already uses explicit sync event
in all cases and StateGpu implements the ability to schedule force
H2D in a separate stream for the "All" locality.
Hence, this change switches for non-DD runs the CPU force H2D to be done
in the update stream to allow overlap with force work in the local
stream.

Refs #3170 #3029

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