Skip to content

Commit 73e4c90

Browse files
Update docs to clarify AMD build selection
1 parent 7330a00 commit 73e4c90

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
@@ -197,11 +197,24 @@ which requires specifying a compute architecture string:
197197

198198
.. code-block:: bash
199199
200-
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
200+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=<arch>"
201201
202-
Note that the `oneAPI for AMD GPUs` plugin requires the architecture be specified and only
202+
Note that the `oneAPI for AMD GPUs` plugin requires the architecture be specified and only
203203
one architecture can be specified at a time.
204204

205+
To determine the architecture code (``<arch>``) for your AMD GPU, run:
206+
207+
.. code-block:: bash
208+
rocminfo | grep 'Name: *gfx.*'
209+
210+
This will print names like ``gfx90a``, ``gfx1030``, etc.
211+
You can then use one of them as the argument to ``-DDPCTL_TARGET_HIP``.
212+
213+
For example:
214+
215+
.. code-block:: bash
216+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
217+
205218
Multi-target build
206219
~~~~~~~~~~~~~~~~~~
207220

0 commit comments

Comments
 (0)