Take over management of OpenCL context from PME and NBNXM
[alexxy/gromacs.git] / src / gromacs / mdtypes / forcerec.h
index 8c4f5d2f01ffcf25ab0a6f5a99f0606942cdda54..d53b5e571cf6a9c5d2e8e9299d33daf91471c940 100644 (file)
@@ -52,6 +52,7 @@
 struct gmx_pme_t;
 struct nonbonded_verlet_t;
 struct bonded_threading_t;
+class DeviceContext;
 class DispersionCorrection;
 struct t_forcetable;
 struct t_QMMMrec;
@@ -289,6 +290,9 @@ struct t_forcerec
     //       general StatePropagatorData object that is passed around
     gmx::StatePropagatorDataGpu* stateGpu = nullptr;
 
+    //! GPU device context
+    DeviceContext* deviceContext = nullptr;
+
     /* For PME-PP GPU communication */
     std::unique_ptr<gmx::PmePpCommGpu> pmePpCommGpu;
 };