Stop timers in GpuForceReduction with no atoms
authorAndrey Alekseenko <al42and@gmail.com>
Tue, 12 Oct 2021 12:55:37 +0000 (14:55 +0200)
committerAndrey Alekseenko <al42and@gmail.com>
Tue, 12 Oct 2021 12:55:37 +0000 (14:55 +0200)
commit7992d01cd70bc6895b131238bfff646c672d94e8
treed09cc33dd676c9e996b3c4ad1940361b0ef78eb9
parent4d2f13291003cda27c81b34c34c41da62a87917c
Stop timers in GpuForceReduction with no atoms

The early return, as implemented earlier, was happening after starting
the timers. Now we properly stop them.

The large "if" was used here instead of just moving the "return" up in
order to accomodate future manual event handling (see Issue #3988 and MR
!2015).

Thanks to Artem Zhmurov for noticing the problem.
src/gromacs/mdlib/gpuforcereduction_impl.cpp