Properly reset CUDA application clocks
authorBerk Hess <hess@kth.se>
Fri, 17 Jun 2016 13:56:36 +0000 (15:56 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 28 Jun 2016 11:56:15 +0000 (13:56 +0200)
commitddc42de5c85212648bbdf827688d186cbbf82843
treed0394dddaec62f68f85595dac59e76bdfbdbf87e
parentf16daabd1d8d85ceb11d1b34f7b658664a9cd739
Properly reset CUDA application clocks

We now store the application clock values we read when starting mdrun
and reset to these values, but only when clocks have not been changed
(by another process) in the meantime.

Fixes #1846.

Change-Id: I722d7153202e8f4c6a5330948dcbef06bb6acf28
src/gromacs/gmxlib/cuda_tools/cudautils.cuh
src/gromacs/gmxlib/gpu_utils/gpu_utils.cu