Take over management of OpenCL context from PME and NBNXM
[alexxy/gromacs.git] / src / gromacs / gpu_utils / device_context.h
index d192b5543fd90967595f6597e46ad2c4b52f9171..84fc076708966df6df766102f3782f3c59fae0b7 100644 (file)
@@ -61,18 +61,10 @@ struct DeviceInformation;
 class DeviceContext
 {
 public:
-    //! Default constructor. In OpenCL leaves context \c nullptr.
+    //! Default constructor.
     DeviceContext() {}
-    /*! \brief Second stage of construction. Creates the \c cl_context in OpenCL, does nothing in CUDA.
-     *
-     * \param[in] deviceInfo Platform-specific device information.
-     */
-    void init(const DeviceInformation& /*deviceInfo*/) {}
-    /*! \brief Construct the object and call \c init(...) .
-     *
-     * \param[in] deviceInfo Platform-specific device information.
-     */
-    DeviceContext(const DeviceInformation& deviceInfo) { init(deviceInfo); }
+    //! Constructor.
+    DeviceContext(const DeviceInformation& /* deviceInfo */) {}
     //! Destructor
     ~DeviceContext() = default;