Fix PME run mode without PME
authorSzilárd Páll <pall.szilard@gmail.com>
Fri, 10 Jan 2020 15:37:32 +0000 (16:37 +0100)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 16 Jan 2020 09:28:22 +0000 (10:28 +0100)
commit6a5f388db7dad42fd80e4741494a803b4216dfab
treec9a5fb5540bba058a7dbd856880d67de98f7933d
parent64528b3f178a34da7abfb522b387fede544bbeab
Fix PME run mode without PME

pmeRunMode was incorrectly set to CPU when the PME task is not
assigned to a GPU in a non-PME run.
This change make sure that non-PME runs pmeRunMode is correctly set to
None. It also moves this setup code to a function in the taskassignment
module.

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