Store DeviceInformation inside the DeviceContext class
[alexxy/gromacs.git] / src / gromacs / mdtypes / state_propagator_data_gpu_impl_gpu.cpp
index fca3ae474d182f193c3d257577b284c3ca7f32f4..e60e9fa73b7eb7ded130cccc5d27699d6c63da84 100644 (file)
@@ -111,7 +111,7 @@ StatePropagatorDataGpu::Impl::Impl(const DeviceStream*  pmeStream,
 #    if (GMX_GPU == GMX_GPU_CUDA)
         // In CUDA we only need priority to create stream.
         // (note that this will be moved from here in the follow-up patch)
-        updateStreamOwn_.init(DeviceInformation(), DeviceContext(), DeviceStreamPriority::Normal, false);
+        updateStreamOwn_.init(deviceContext, DeviceStreamPriority::Normal, false);
         updateStream_ = &updateStreamOwn_;
 #    endif
     }