Set GPU update to false in case of a rerun
[alexxy/gromacs.git] / src / gromacs / taskassignment / decidegpuusage.h
index 08ff410b406fd6e389543665cfce7abee9cebbfd..ace5f39cc2f3bb465b81d777d31d311f005ca1cb 100644 (file)
@@ -241,6 +241,7 @@ bool decideWhetherToUseGpusForBonded(bool       useGpuForNonbonded,
  * \param[in]  useEssentialDynamics      If essential dynamics is active.
  * \param[in]  doOrientationRestraints   If orientation restraints are enabled.
  * \param[in]  useReplicaExchange        If this is a REMD simulation.
+ * \param[in]  doRerun                   It this is a rerun.
  *
  * \returns    Whether complete simulation can be run on GPU.
  * \throws     std::bad_alloc            If out of memory
@@ -255,7 +256,8 @@ bool decideWhetherToUseGpuForUpdate(bool              isDomainDecomposition,
                                     const gmx_mtop_t& mtop,
                                     bool              useEssentialDynamics,
                                     bool              doOrientationRestraints,
-                                    bool              useReplicaExchange);
+                                    bool              useReplicaExchange,
+                                    bool              doRerun);
 
 
 } // namespace gmx