Make DeviceContext into a proper class
[alexxy/gromacs.git] / src / gromacs / domdec / gpuhaloexchange_impl.cuh
index b139a9b491e2704b927a8663af948c4b843fe6dd..a8d2f9204c590894d489d266a221292bd3b6d056 100644 (file)
@@ -47,6 +47,7 @@
 #define GMX_DOMDEC_GPUHALOEXCHANGE_IMPL_H
 
 #include "gromacs/domdec/gpuhaloexchange.h"
+#include "gromacs/gpu_utils/device_context.h"
 #include "gromacs/gpu_utils/gpueventsynchronizer.cuh"
 #include "gromacs/gpu_utils/hostallocator.h"
 #include "gromacs/utility/gmxmpi.h"
@@ -175,6 +176,8 @@ private:
     GpuEventSynchronizer* haloDataTransferLaunched_ = nullptr;
     //! MPI communicator used for simulation
     MPI_Comm mpi_comm_mysim_;
+    //! Dummy GPU context object
+    const DeviceContext deviceContext_;
     //! CUDA stream for local non-bonded calculations
     cudaStream_t localStream_ = nullptr;
     //! CUDA stream for non-local non-bonded calculations