Refactor GPU selection handling
commitc406c64537a424ab6664226599cfb87f6c03fc71
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 20 Feb 2017 16:23:22 +0000 (20 17:23 +0100)
committerAleksei Iupinov <a.yupinov@gmail.com>
Thu, 9 Mar 2017 12:52:01 +0000 (9 13:52 +0100)
treefbc86bdc5ea1196e83b3958cf58a884aba56bb98
parentc5bd0f7e63b82ab9424f3b114da828d6bcc84d49
Refactor GPU selection handling

Some code was largely duplicated between CUDA and OpenCL
implementations, which has been reduced by extracting the single line
of implementation-specific logic, and calling that from code that can
now live in the general hardware module.

There's also some related clean-up of allocation, logic, string
handling, and documentation.

Change-Id: I9eeade90e2fe44490e1a517e4c045e61ad4afc80
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/hardwareassign.cpp