Make DeviceContext into a proper class
[alexxy/gromacs.git] / src / gromacs / listed_forces / gpubonded_impl.h
index a785b16dbba1584df4276b987bdcbc418a87cd16..0532b40315a0b893c6ec4457d5a4714690f7cac6 100644 (file)
@@ -48,6 +48,7 @@
 #ifndef GMX_LISTED_FORCES_GPUBONDED_IMPL_H
 #define GMX_LISTED_FORCES_GPUBONDED_IMPL_H
 
+#include "gromacs/gpu_utils/device_context.h"
 #include "gromacs/gpu_utils/gputraits.cuh"
 #include "gromacs/gpu_utils/hostallocator.h"
 #include "gromacs/listed_forces/gpubonded.h"
@@ -179,6 +180,8 @@ private:
     //! \brief Device-side total virial
     float* d_vTot_ = nullptr;
 
+    //! Dummy GPU context object
+    const DeviceContext deviceContext_;
     //! \brief Bonded GPU stream, not owned by this module
     CommandStream stream_;