Take over management of OpenCL context from PME and NBNXM
[alexxy/gromacs.git] / src / gromacs / ewald / pme_gpu.cpp
index b4cec47135c8af61d2f66a368ba635290b4647ac..4c4ed4851d8cea883a6b1531a6fdce4296276c45 100644 (file)
@@ -442,14 +442,6 @@ void* pme_gpu_get_device_stream(const gmx_pme_t* pme)
     return pme_gpu_get_stream(pme->gpu);
 }
 
-const DeviceContext* pme_gpu_get_device_context(const gmx_pme_t* pme)
-{
-    GMX_RELEASE_ASSERT(pme, "GPU context requested from PME before PME was constructed.");
-    GMX_RELEASE_ASSERT(pme_gpu_active(pme),
-                       "GPU context requested from PME, but PME is running on the CPU.");
-    return pme_gpu_get_context(pme->gpu);
-}
-
 GpuEventSynchronizer* pme_gpu_get_f_ready_synchronizer(const gmx_pme_t* pme)
 {
     if (!pme || !pme_gpu_active(pme))