/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,2019,2020 by the GROMACS development team.
+ * Copyright (c) 2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
/*! \brief
* To be called before the region start.
*
- * \param[in] s The GPU command stream where the event being measured takes place.
+ * \param[in] deviceStream The GPU command stream where the event being measured takes place.
*/
- void openTimingRegion(CommandStream s)
+ void openTimingRegion(const DeviceStream& deviceStream)
{
if (c_debugTimerState)
{
GMX_ASSERT(debugState_ == TimerState::Idle, error.c_str());
debugState_ = TimerState::Recording;
}
- impl_.openTimingRegion(s);
+ impl_.openTimingRegion(deviceStream);
}
/*! \brief
* To be called after the region end.
*
- * \param[in] s The GPU command stream where the event being measured takes place.
+ * \param[in] deviceStream The GPU command stream where the event being measured takes place.
*/
- void closeTimingRegion(CommandStream s)
+ void closeTimingRegion(const DeviceStream& deviceStream)
{
if (c_debugTimerState)
{
debugState_ = TimerState::Stopped;
}
callCount_++;
- impl_.closeTimingRegion(s);
+ impl_.closeTimingRegion(deviceStream);
}
/*! \brief
* Accumulates the last timespan of all the events used into the total duration,
* and resets the internal timer state.
* To be called after closeTimingRegion() and the command stream of the event having been
- * synchronized. \returns The last timespan (in milliseconds).
+ * synchronized.
+ * \returns The last timespan (in milliseconds).
*/
double getLastRangeTime()
{