Preliminary clean up of NVML code
commit9e8ff36e081e5e8fdfefeae889fc5b316ea78849
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 31 Aug 2016 21:42:34 +0000 (31 23:42 +0200)
committerErik Lindahl <erik.lindahl@gmail.com>
Mon, 12 Sep 2016 09:28:19 +0000 (12 11:28 +0200)
tree9f07ed5377213b29d959dc664c7e6e00b8007331
parentf59df06d43ff95b512b7bb32d5683d5ed424b2aa
Preliminary clean up of NVML code

Restructured logic so that it's simpler - there's multiple reasons why
we might not be able to change clocks, so now we just return after any
check that fails. No functionality changes here.

nvml_initialized does not need to persist.

Reading driver and runtime version is not needed.

Fixed some spelling.

Noted TODOs for subsequent cleanup.

Change-Id: I5e4cf73a470e60f53f098f7d28742403111f7da0
src/gromacs/gpu_utils/cudautils.cuh
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpu_utils_ocl.cpp