#include <algorithm>
#include "gromacs/gpu_utils/cudautils.cuh"
+#include "gromacs/gpu_utils/device_context.h"
#include "gromacs/gpu_utils/devicebuffer.h"
#include "gromacs/gpu_utils/gputraits.cuh"
#include "gromacs/gpu_utils/vectype_ops.cuh"
UpdateConstrainGpu::Impl::Impl(const t_inputrec& ir,
const gmx_mtop_t& mtop,
+ const DeviceContext& deviceContext,
const void* commandStream,
GpuEventSynchronizer* xUpdatedOnDevice) :
+ deviceContext_(deviceContext),
coordinatesReady_(xUpdatedOnDevice)
{
GMX_ASSERT(xUpdatedOnDevice != nullptr, "The event synchronizer can not be nullptr.");
UpdateConstrainGpu::UpdateConstrainGpu(const t_inputrec& ir,
const gmx_mtop_t& mtop,
+ const DeviceContext& deviceContext,
const void* commandStream,
GpuEventSynchronizer* xUpdatedOnDevice) :
- impl_(new Impl(ir, mtop, commandStream, xUpdatedOnDevice))
+ impl_(new Impl(ir, mtop, deviceContext, commandStream, xUpdatedOnDevice))
{
}