Simplify reporting from init_gpu
commit4d2edc47625a90dfaf03ad134bc77b671db92aee
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 31 May 2017 17:55:17 +0000 (31 18:55 +0100)
committerErik Lindahl <erik.lindahl@gmail.com>
Wed, 14 Jun 2017 16:23:13 +0000 (14 18:23 +0200)
treeb6d9234edace9f08d2d9d1c063a5272ccf15cec0
parentd510ba6e313c5e133df0ea366ce1356cd16b1e06
Simplify reporting from init_gpu

makeGpuUsageReport reports whether the usage was selected by the user
or not, and has been run before we call init_gpu.

In any case, the reporting from init_gpu should only happen if mygpu
contains an invalid value, which should never happen so late in the
code, ie after all the previous consistency checks. Knowing whether
the user selected the GPUs or not doesn't help much, and that
information is available from makeGpuUsageReport, anyway.

Change-Id: I1b701dceb4f4c5ee62175827b6a70bb134b0f66a
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpu_utils_ocl.cpp