Limit auto assignment of bondeds to GPUs
[alexxy/gromacs.git] / src / gromacs / mdrun / runner.cpp
index ce9b5b8eb3a1601bc7f1ddc4e95016450810f788..57031c7a529ddd0ad41ab4d067c8cfa6ac1dc3af 100644 (file)
@@ -694,7 +694,9 @@ int Mdrunner::mdrunner()
         auto canUseGpuForBonded = buildSupportsGpuBondeds(nullptr) && inputSupportsGpuBondeds(*inputrec, mtop, nullptr);
         useGpuForBonded =
             decideWhetherToUseGpusForBonded(useGpuForNonbonded, useGpuForPme, usingVerletScheme,
-                                            bondedTarget, canUseGpuForBonded, cr->nnodes,
+                                            bondedTarget, canUseGpuForBonded,
+                                            EVDW_PME(inputrec->vdwtype),
+                                            EEL_PME_EWALD(inputrec->coulombtype),
                                             domdecOptions.numPmeRanks, gpusWereDetected);
 
         pmeRunMode   = (useGpuForPme ? PmeRunMode::GPU : PmeRunMode::CPU);