Disable GPU update/constraints when neither PME nor buffer ops are offloaded.
[alexxy/gromacs.git] / src / gromacs / mdrun / runner.cpp
index 3347dd39dd378adca208f6a1d4696196cbf55193..a1928eaa1b4de64a3e6c89801a4c58659b70d166 100644 (file)
@@ -1485,7 +1485,9 @@ int Mdrunner::mdrunner()
 
         // Before we start the actual simulator, try if we can run the update task on the GPU.
         useGpuForUpdate = decideWhetherToUseGpuForUpdate(DOMAINDECOMP(cr),
+                                                         useGpuForPme,
                                                          useGpuForNonbonded,
+                                                         c_enableGpuBufOps,
                                                          updateTarget,
                                                          gpusWereDetected,
                                                          *inputrec,