Fix PME checks in GPU update assignment decision
authorGaurav Garg <gaugarg@nvidia.com>
Fri, 10 Jan 2020 17:29:17 +0000 (22:59 +0530)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 23 Jan 2020 12:28:16 +0000 (13:28 +0100)
commit7f48e92a1e6ea04109f20e0041eca1fce30612b3
treef83377433102eaefe9c72f95d9ebe98562bc7002
parent2ea07ac1b7b63be2f3d8342ef25c2bb89c4750b2
Fix PME checks in GPU update assignment decision

The decideWhetherToUseGpuForUpdate() function performed a check on
whether PME is on GPU, but neglected to check if PME is actually
active. Therefore, cases without PME (e.g. reaction field) were
unintentionally being prevented from running update on GPU. This change
adds a check whether pmeRunMode != PmeRunMode::None

Change-Id: Ic49f99b2e2afddabd7e2c8e68ab3d6d9325dc07a
src/gromacs/taskassignment/decidegpuusage.cpp