{
public:
//! Constructor
- Impl(const gmx_ffparams_t& ffparams, void* streamPtr, gmx_wallcycle* wcycle);
+ Impl(const gmx_ffparams_t& ffparams, const DeviceContext& deviceContext, void* streamPtr, gmx_wallcycle* wcycle);
/*! \brief Destructor, non-default needed for freeing
* device-side buffers */
~Impl();
//! \brief Device-side total virial
float* d_vTot_ = nullptr;
- //! Dummy GPU context object
- const DeviceContext deviceContext_;
+ //! GPU context object
+ const DeviceContext& deviceContext_;
//! \brief Bonded GPU stream, not owned by this module
CommandStream stream_;