Make DeviceContext into a proper class
[alexxy/gromacs.git] / src / gromacs / gpu_utils / oclutils.h
index 91b6059d27c5bf1838fdfec1e000015ac6b4a205..230b3ff94e1b0b43f56faf92a5c2cde897272671 100644 (file)
@@ -44,6 +44,7 @@
 
 #include <string>
 
+#include "gromacs/gpu_utils/device_context.h"
 #include "gromacs/gpu_utils/gmxopencl.h"
 #include "gromacs/gpu_utils/gputraits_ocl.h"
 #include "gromacs/utility/exceptions.h"
@@ -63,8 +64,10 @@ enum class GpuApiCallBehavior;
  */
 struct gmx_device_runtime_data_t
 {
-    cl_context context; /**< OpenCL context */
-    cl_program program; /**< OpenCL program */
+    //! OpenCL context
+    DeviceContext deviceContext;
+    //! OpenCL program
+    cl_program program;
 };
 
 /*! \brief Launches synchronous or asynchronous device to host memory copy.