Fix mdrun -nb auto -pme auto when GPUs are absent
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 5 Dec 2017 09:27:21 +0000 (20:27 +1100)
committerKasson <kasson@gmail.com>
Tue, 5 Dec 2017 13:10:07 +0000 (14:10 +0100)
commita0d89bf8e412554a58e803715847b0f9dd920886
treea3a67376834aef395b4ef2d8b65e60e2585efe19
parent7569ef6d01eeb0729aaf97a1aa8ea579773df762
Fix mdrun -nb auto -pme auto when GPUs are absent

The logic was flawed such that GPUs were "selected" for use even
though none had been detected. That led to the GPU behaviour of
avoiding using separate PME ranks.

Also made a minor fix to the logic for emulation. The new
interpretation of mdrun -gpu_id does not need to trigger an error when
GPU IDs have been supplied along with the emulation environmnet
variable.

Fixes #2315

Change-Id: I68da27c9bfef9f73b9dae4f04f196066d2efb1e2
src/gromacs/taskassignment/decidegpuusage.cpp
src/gromacs/taskassignment/decidegpuusage.h
src/programs/mdrun/runner.cpp