Fix random typos
[alexxy/gromacs.git] / src / gromacs / gpu_utils / gpuregiontimer.h
index 6798159ac9af5ddfdb717cbb778fa63ccc9acc30..a6614c1bba505ccd34cd3c907c3d20f3815e20a5 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * 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.
@@ -84,9 +85,9 @@ public:
     /*! \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)
         {
@@ -96,14 +97,14 @@ public:
             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)
         {
@@ -114,13 +115,14 @@ public:
             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()
     {