Skip to content

Commit

Permalink
Fix clocks
Browse files Browse the repository at this point in the history
  • Loading branch information
matyas-streamhpc authored and neon60 committed May 31, 2024
1 parent fb2fb48 commit 59de486
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/kernel_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1482,16 +1482,16 @@ To read a high-resolution timer from the device, HIP provides the following buil

.. code-block:: cpp
long long int wall_clock64()
clock_t clock()
long long int clock64()
The difference between the values that are returned represents the cycles used.

* Returning the wall clock count at a constant frequency on the device:

.. code-block:: cpp
clock_t clock()
long long int clock64()
long long int wall_clock64()
This can be queried using the HIP API with the ``hipDeviceAttributeWallClockRate`` attribute of the
device in HIP application code. For example:
Expand Down

0 comments on commit 59de486

Please sign in to comment.