You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, if you don't specify ``CMAKE_INSTALL_PREFIX``, the HIP runtime is installed at
99
-
``<ROCM_PATH>``.
99
+
.. note::
100
100
101
-
By default, release version of HIP is built. If need debug version, you can put the option ``CMAKE_BUILD_TYPE=Debug`` in the command line.
101
+
Note, if you don't specify ``CMAKE_INSTALL_PREFIX``, the HIP runtime is installed at
102
+
``<ROCM_PATH>``.
102
103
103
-
Default paths and environment variables:
104
+
By default, release version of HIP is built. If need debug version, you can
105
+
put the option ``CMAKE_BUILD_TYPE=Debug`` in the command line.
104
106
105
-
* HIP is installed into ``<ROCM_PATH>``. This can be overridden by setting the ``INSTALL_PREFIX`` as the command option.
106
-
environment variable.
107
-
* HSA is in ``<ROCM_PATH>``. This can be overridden by setting the ``HSA_PATH``
108
-
environment variable.
109
-
* Clang is in ``<ROCM_PATH>/llvm/bin``. This can be overridden by setting the
110
-
``HIP_CLANG_PATH`` environment variable.
111
-
* The device library is in ``<ROCM_PATH>/lib``. This can be overridden by setting the
112
-
``DEVICE_LIB_PATH`` environment variable.
113
-
* Optionally, you can add ``<ROCM_PATH>/bin`` to your ``PATH``, which can make it easier to
114
-
use the tools.
115
-
* Optionally, you can set ``HIPCC_VERBOSE=7`` to output the command line for compilation.
107
+
Default paths and environment variables:
116
108
117
-
After you run the ``make install`` command, HIP is installed to ``<ROCM_PATH>`` by default, or ``$PWD/install/hip`` while ``INSTALL_PREFIX`` is defined.
109
+
* HIP is installed into ``<ROCM_PATH>``. This can be overridden by setting the ``INSTALL_PREFIX`` as the command option.
110
+
111
+
* HSA is in ``<ROCM_PATH>``. This can be overridden by setting the ``HSA_PATH`` environment variable.
112
+
113
+
* Clang is in ``<ROCM_PATH>/llvm/bin``. This can be overridden by setting the ``HIP_CLANG_PATH`` environment variable.
114
+
115
+
* The device library is in ``<ROCM_PATH>/lib``. This can be overridden by setting the ``DEVICE_LIB_PATH`` environment variable.
116
+
117
+
* Optionally, you can add ``<ROCM_PATH>/bin`` to your ``PATH``, which can make it easier to use the tools.
118
+
119
+
* Optionally, you can set ``HIPCC_VERBOSE=7`` to output the command line for compilation.
118
120
119
-
#. Generate a profiling header after adding/changing a HIP API.
121
+
After you run the ``make install`` command, HIP is installed to ``<ROCM_PATH>`` by default, or ``$PWD/install/hip`` while ``INSTALL_PREFIX`` is defined.
120
122
121
-
When you add or change a HIP API, you may need to generate a new ``hip_prof_str.h`` header.
122
-
This header is used by ROCm tools to track HIP APIs, such as ``rocprofiler`` and ``roctracer``.
123
+
#. Generate a profiling header after adding/changing a HIP API.
123
124
124
-
To generate the header after your change, use the ``hip_prof_gen.py`` tool located in
125
-
``hipamd/src``.
125
+
When you add or change a HIP API, you may need to generate a new ``hip_prof_str.h`` header.
126
+
This header is used by ROCm tools to track HIP APIs, such as ``rocprofiler`` and ``roctracer``.
126
127
127
-
Usage:
128
+
To generate the header after your change, use the ``hip_prof_gen.py`` tool located in
129
+
``hipamd/src``.
128
130
129
-
.. code-block:: shell
131
+
Usage:
130
132
131
-
`hip_prof_gen.py [-v] <input HIP API .h file><patched srcs path><previous output> [<output>]`
133
+
.. code-block:: shell
132
134
133
-
Flags:
135
+
`hip_prof_gen.py [-v] <input HIP API .h file><patched srcs path><previous output> [<output>]`
0 commit comments