Centralize management of forces ready on GPU event
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 10 Oct 2019 16:03:11 +0000 (18:03 +0200)
committerArtem Zhmurov <zhmurov@gmail.com>
Sat, 12 Oct 2019 14:49:20 +0000 (16:49 +0200)
commit7b77ac03f6364c62b746c24983611d9dbef23b98
treeb92cf0f37b1302d90f2bdb26b3f62b56a07039cc
parenta72878d0c5d819893692a5e84687aa93630c470a
Centralize management of forces ready on GPU event

This change adds the GpuEventSynchronizer for the forces reduced on GPU event
to the StatePropagatorDataGpu. This event should be marked if the buffer ops
are offloaded when the force reduction is done. The consumers of of the forces
on the GPU will get this event or the event on the H2D copy is done,
depending on the current step workload and offload scenario.

Change-Id: Ib559dbed5ad777eac3a906e4ee0ebaa07caf0ac1
src/gromacs/mdlib/sim_util.cpp
src/gromacs/mdtypes/state_propagator_data_gpu.h
src/gromacs/mdtypes/state_propagator_data_gpu_impl.cpp
src/gromacs/mdtypes/state_propagator_data_gpu_impl.h
src/gromacs/mdtypes/state_propagator_data_gpu_impl_gpu.cpp