X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fmdtypes%2Fstate_propagator_data_gpu_impl.h;h=d72bc5a0f27f0a4277ef2f1f51d711d0c07795ad;hb=0504f4b552b9713671975a3ab0864755657bd8b3;hp=dbe435d508ddd13c54aeec0eeb7c21d26cae7784;hpb=f6793f9b3baa31c5f48382c5fb5295a35608cc34;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/mdtypes/state_propagator_data_gpu_impl.h b/src/gromacs/mdtypes/state_propagator_data_gpu_impl.h index dbe435d508..d72bc5a0f2 100644 --- a/src/gromacs/mdtypes/state_propagator_data_gpu_impl.h +++ b/src/gromacs/mdtypes/state_propagator_data_gpu_impl.h @@ -192,6 +192,22 @@ public: */ void waitCoordinatesCopiedToDevice(AtomLocality atomLocality); + /*! \brief Consume the event for copying coordinates to the device. + * + * Used for manual event consumption. Does nothing except changing the internal event counter. + * + * \param[in] atomLocality Locality of the particles. + */ + void consumeCoordinatesCopiedToDeviceEvent(AtomLocality atomLocality); + + /*! \brief Reset the event for copying coordinates to the device. + * + * Used for manual event consumption. Does nothing except resetting the event. + * + * \param[in] atomLocality Locality of the particles. + */ + void resetCoordinatesCopiedToDeviceEvent(AtomLocality atomLocality); + /*! \brief Setter for the event synchronizer for the update is done on th GPU * * \param[in] xUpdatedOnDeviceEvent The event to synchronize the stream coordinates wre updated on device. @@ -284,6 +300,9 @@ public: */ GpuEventSynchronizer* fReducedOnDevice(AtomLocality atomLocality); + //! \brief Consume the event for when the forces are reduced on device. + void consumeForcesReducedOnDeviceEvent(AtomLocality atomLocality); + /*! \brief Getter for the event synchronizer for the forces are ready for GPU update. * * \param[in] atomLocality Locality of the particles to wait for.