Stop duplicate printing of detected GPUs
commit9be378d7b26843283207ef3d13a6e837ce06a58e
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 13 Jul 2017 16:55:13 +0000 (13 18:55 +0200)
committerKasson <kasson@gmail.com>
Thu, 20 Jul 2017 01:40:39 +0000 (20 03:40 +0200)
treefa6d16f2ff8578c6f9ec4321ffe1751b25fd1fdb
parent75973091890325813e0d4adb50e525d52bdd5816
Stop duplicate printing of detected GPUs

The detected GPUs and their compatibility status are always printed to
both stderr and log file immediately after detection, as part of the
normal hardware report.

When the user made an invalid selection, we should not print the
information about the detected GPUs again (differently).

When an auto-selection is made, we do not need to print information
about the detected GPUs again.

sprint_gpus is now local to a single source file.

Noted TODO to separate a printing functionality from a checking
routine.

Change-Id: I47ef0da6bdf58d9a61b8577e539effd96c771b8c
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/detecthardware.h
src/gromacs/hardware/hardwareassign.cpp
src/gromacs/hardware/hardwareassign.h
src/programs/mdrun/runner.cpp