Minor change to GPU compatibility reporting handling
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 17 Apr 2017 14:22:12 +0000 (16:22 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 17 Apr 2017 14:22:12 +0000 (16:22 +0200)
commit1399ad8d0e8d5e378c8f21f22fba11b4804e5247
tree04543cec861cea7df347d597fdeb9d548d0d9a33
parent7fc30699f578eff0358db90e6e93ee2d78523a5f
Minor change to GPU compatibility reporting handling

The old code returned an int that was used to look up an
array of strings, and analysis programs can't tell whether
the use was valid.

While we could try to return an enum, instead the logic
of whether a device is compatible is separated from
describing why it isn't.

Noted TODO to move the definition of those strings to a good single
place, when there is one.

Change-Id: I504f4e7efcfcb76f97873ff1f98bee9c67b157a3
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpu_utils.h
src/gromacs/gpu_utils/gpu_utils_ocl.cpp
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/hardwareassign.cpp