Take over management of OpenCL context from PME and NBNXM
[alexxy/gromacs.git] / src / gromacs / ewald / pme_gpu_internal.cpp
index bd3b25e1cdf1cfa2cf4e07c5f0fcf166fd5c5fc3..dd62e8c4cdfe4306527066936af4042a2edc4744 100644 (file)
@@ -1527,14 +1527,6 @@ void* pme_gpu_get_stream(const PmeGpu* pmeGpu)
     }
 }
 
-const DeviceContext* pme_gpu_get_context(const PmeGpu* pmeGpu)
-{
-    GMX_RELEASE_ASSERT(
-            pmeGpu,
-            "GPU context object was requested, but PME GPU object was not (yet) initialized.");
-    return &pmeGpu->archSpecific->deviceContext_;
-}
-
 GpuEventSynchronizer* pme_gpu_get_forces_ready_synchronizer(const PmeGpu* pmeGpu)
 {
     if (pmeGpu && pmeGpu->kernelParams)