@@ -192,12 +192,11 @@ Compute Capabilities can be found in the official
192
192
AMD build
193
193
~~~~~~~~~
194
194
195
- ``dpctl `` can be built for AMD devices using the ``DPCTL_TARGET_HIP `` CMake option,
196
- which requires specifying a compute architecture string:
195
+ ``dpctl `` can be built for AMD devices using the ``--target-hip `` argument.
197
196
198
197
.. code-block :: bash
199
198
200
- python scripts/build_locally.py --verbose --cmake-opts= " -DDPCTL_TARGET_HIP= <arch>"
199
+ python scripts/build_locally.py --verbose --target-hip= < arch>
201
200
202
201
Note that the `oneAPI for AMD GPUs ` plugin requires the architecture be specified and only
203
202
one architecture can be specified at a time.
@@ -208,12 +207,12 @@ To determine the architecture code (``<arch>``) for your AMD GPU, run:
208
207
rocminfo | grep ' Name: *gfx.*'
209
208
210
209
This will print names like ``gfx90a ``, ``gfx1030 ``, etc.
211
- You can then use one of them as the argument to ``-DDPCTL_TARGET_HIP ``.
210
+ You can then use one of them as the argument to ``--target-hip ``.
212
211
213
212
For example:
214
213
215
214
.. code-block :: bash
216
- python scripts/build_locally.py --verbose --cmake-opts= " -DDPCTL_TARGET_HIP= gfx1030"
215
+ python scripts/build_locally.py --verbose --target-hip= gfx1030
217
216
218
217
Multi-target build
219
218
~~~~~~~~~~~~~~~~~~
@@ -225,7 +224,7 @@ devices at the same time:
225
224
226
225
.. code-block :: bash
227
226
228
- python scripts/build_locally.py --verbose --target-cuda --cmake-opts= " -DDPCTL_TARGET_HIP= gfx1030"
227
+ python scripts/build_locally.py --verbose --target-cuda --target-hip= gfx1030
229
228
230
229
Running Examples and Tests
231
230
==========================
0 commit comments