File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
docs/doc_sources/beginners_guides Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff 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
203203one 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
You can’t perform that action at this time.
0 commit comments