Simplified handling of GPU device IDs
authorMark Abraham <mark.j.abraham@gmail.com>
Sun, 6 Aug 2017 12:33:54 +0000 (14:33 +0200)
committerKasson <kasson@gmail.com>
Mon, 7 Aug 2017 12:49:25 +0000 (14:49 +0200)
commit9d8df0e12c9b7bf071456d91685617781c5cfac6
tree8fe56fcc0c6fb70d900251445534c41e3fe4f6af
parent6a350e9bd13b7d5da0a96e93ab62d57abb8ff586
Simplified handling of GPU device IDs

Removed gmx_gpu_device_id lookup function, whose indirect lookup of
the device ID was more complicated than we need. We already require
the user to select GPUs based on the IDs as understood by CUDA, so for
simplicity, and without loss of generality, we can do that everywhere
in the code.

Removed a previously unused function for querying the name of an
OpenCL device.

Change-Id: I6557dd51f6b23591d4fd2b6383deb6abf58a0b92
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/printhardware.cpp