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:
197
197
198
198
.. code-block :: bash
199
199
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> "
201
201
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
203
203
one architecture can be specified at a time.
204
204
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
+
205
218
Multi-target build
206
219
~~~~~~~~~~~~~~~~~~
207
220
You can’t perform that action at this time.
0 commit comments