Move gmx_parse_gpu_id out of checking function
commit0123f06c3566150113d63a9ee64147e6cb872ae8
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 31 May 2017 17:52:10 +0000 (31 18:52 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 12 Jun 2017 15:31:33 +0000 (12 17:31 +0200)
tree9bec5ded765c889909eb0c885a5c748ba3ddda96
parent6f8801115077e9d24b59e416fe75908c3fea3e7b
Move gmx_parse_gpu_id out of checking function

Parsing user input should happen separately from running checks for
consistency or sanity. Some of the content of gmx_parse_gpu_id is more
like consistency checking, so left that where it was, using the output
of the parsing to run the checks. Doing so means that the first such
check now works when GMX_GPU_ID is used, when previously it did not.

Made minor improvement to error message text for that check.

Noted TODO to remove helper functionality for GPU sharing checks,
since it is now supported everywhere.

Change-Id: I2ea5841f0fdf461f3024b442a2fe641ea1435f49
src/gromacs/hardware/detecthardware.cpp
src/programs/mdrun/resource-division.cpp
src/programs/mdrun/runner.cpp