Take over management of OpenCL context from PME and NBNXM
[alexxy/gromacs.git] / src / gromacs / nbnxm / opencl / nbnxm_ocl_jit_support.cpp
index 0ba3345780533b3f7d5881fc81c814e995324b6e..9c1c759880d0cca050b09d69f28192cbc8eb6983 100644 (file)
@@ -200,10 +200,10 @@ void nbnxn_gpu_compile_kernels(NbnxmGpu* nb)
         {
             /* TODO when we have a proper MPI-aware logging module,
                the log output here should be written there */
-            program =
-                    gmx::ocl::compileProgram(stderr, "gromacs/nbnxm/opencl", "nbnxm_ocl_kernels.cl",
-                                             extraDefines, nb->dev_rundata->deviceContext.context(),
-                                             nb->deviceInfo->oclDeviceId, nb->deviceInfo->deviceVendor);
+            program = gmx::ocl::compileProgram(
+                    stderr, "gromacs/nbnxm/opencl", "nbnxm_ocl_kernels.cl", extraDefines,
+                    nb->dev_rundata->deviceContext_.context(), nb->deviceInfo->oclDeviceId,
+                    nb->deviceInfo->deviceVendor);
         }
         catch (gmx::GromacsException& e)
         {