Skip to content

Commit 3bfba7e

Browse files
Update docs to clarify AMD build selection
1 parent 79b7ab5 commit 3bfba7e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

docs/doc_sources/beginners_guides/installation.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,24 @@ To build for AMD devices, use:
187187

188188
.. code-block:: bash
189189
190-
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
190+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=<arch>"
191191
192-
Note that the `oneAPI for AMD GPUs` plugin requires the architecture be specified and only
192+
Note that the `oneAPI for AMD GPUs` plugin requires the architecture be specified and only
193193
one architecture can be specified at a time.
194194

195+
To determine the architecture code (``<arch>``) for your AMD GPU, run:
196+
197+
.. code-block:: bash
198+
rocminfo | grep 'Name: *gfx.*'
199+
200+
This will print names like ``gfx90a``, ``gfx1030``, etc.
201+
You can then use one of them as the argument to ``-DDPCTL_TARGET_HIP``.
202+
203+
For example:
204+
205+
.. code-block:: bash
206+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
207+
195208
It is, however, possible to build for Intel devices, CUDA devices, and an AMD device
196209
architecture all at once:
197210

0 commit comments

Comments
 (0)