Take over management of OpenCL context from PME and NBNXM
[alexxy/gromacs.git] / src / gromacs / gpu_utils / device_context_ocl.h
index 70e3927cf80f0ba729170fcf278acb725167c5bc..a9b84b2f8e2c1867c89eed5a619da9e1ee8829c7 100644 (file)
@@ -57,16 +57,9 @@ struct DeviceInformation;
 class DeviceContext
 {
 public:
-    //! Default constructor. Sets \c context_ to \c nullptr.
-    DeviceContext();
-    /*! \brief Second stage of construction. Creates the \c cl_context.
-     *
-     * \param[in] deviceInfo Platform-specific device information.
-     *
-     * \throws InternalError if context creation failed.
-     */
-    void init(const DeviceInformation& deviceInfo);
-    /*! \brief Construct the object and call \c init(...) .
+    //! Default constructor.
+    DeviceContext() {}
+    /*! \brief Constructor that creates the \c cl_context
      *
      * \param[in] deviceInfo Platform-specific device information.
      *