Add basic interface to run update on GPU
[alexxy/gromacs.git] / src / gromacs / mdrun / isimulator.h
index 9ae093de7070b9558f40e0c1441eb2156c8ac0aa..e7f3c66249219a4851241eb651d5740c8422395f 100644 (file)
@@ -134,7 +134,8 @@ class ISimulator
             gmx_membed_t                       *membed,
             gmx_walltime_accounting            *walltime_accounting,
             std::unique_ptr<StopHandlerBuilder> stopHandlerBuilder,
-            bool                                doRerun) :
+            bool                                doRerun,
+            bool                                useGpuForUpdate) :
             fplog(fplog),
             cr(cr),
             ms(ms),
@@ -169,7 +170,8 @@ class ISimulator
             membed(membed),
             walltime_accounting(walltime_accounting),
             stopHandlerBuilder(std::move(stopHandlerBuilder)),
-            doRerun(doRerun)
+            doRerun(doRerun),
+            useGpuForUpdate(useGpuForUpdate)
         {}
 
     protected:
@@ -243,6 +245,8 @@ class ISimulator
         std::unique_ptr<StopHandlerBuilder> stopHandlerBuilder;
         //! Whether we're doing a rerun.
         bool                                doRerun;
+        //! Whether we will use the GPU for calculating the update.
+        bool                                useGpuForUpdate;
 
 };