Make mdrun print the list of compatible GPUs
authorMark Abraham <mark.j.abraham@gmail.com>
Sat, 17 May 2014 13:35:56 +0000 (15:35 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 5 Dec 2014 20:02:22 +0000 (21:02 +0100)
commit951c3877d5499f5243f93be32c9b384371d3f225
treeb3fcc0048d0f6a8877fd3c9015f1a158f801b322
parenteeca5ee4d370e5919b30cd55992975c281310986
Make mdrun print the list of compatible GPUs

This extends functionality so that the available, compatible, and
actually-used GPU IDs are reported when that makes sense. This will
help (e.g.) gmx tune-pme optimize resource usage by running mdrun
to probe for the available hardware.

The old implementation and documentation had a few issues that have
been corrected or updated. The major issue was that the list of
compatible device IDs was formed and then replaced by the list of
device IDs to use, so the former was no longer available during
subsequent output.

Change-Id: I3ca3e88054bd7d288f556af7e5d7704145ab6fca
src/gromacs/gmxlib/gmx_detect_hardware.cpp
src/gromacs/gmxlib/gpu_utils/gpu_utils.cu
src/gromacs/legacyheaders/gmx_detect_hardware.h
src/gromacs/legacyheaders/types/hw_info.h