Rework and rename gmx_select_gpu_ids
commit54821ced6ee4c604dccef7ecffaf5208b0c5dfb1
authorPeter Kasson <kasson@gmail.com>
Thu, 20 Jul 2017 17:02:31 +0000 (20 13:02 -0400)
committerPeter Kasson <kasson@gmail.com>
Thu, 20 Jul 2017 17:05:23 +0000 (20 13:05 -0400)
treeed3424e6967d049f84b9abbefc87e7cf29f25b8f
parent9be378d7b26843283207ef3d13a6e837ce06a58e
Rework and rename gmx_select_gpu_ids

This change makes clear that this function now produces a validated
mapping of intra-node PP ranks (ie with GPU tasks) to compatible GPUs
on that node. If the user provided GPU IDs, then exit if that mapping
is invalid. Otherwise, produce a valid mapping.

Noted TODOs relating to our lack of feature-complete error-handling
infrastructure.

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