@@ -166,14 +166,27 @@ A full list of available SYCL alias targets is available in the
166
166
CUDA build
167
167
~~~~~~~~~~
168
168
169
- ``dpctl `` can be built for CUDA devices using the ``DPCTL_TARGET_CUDA `` CMake option,
170
- which accepts a specific compute architecture string:
169
+ ``dpctl `` can be built for CUDA devices using the ``--target-cuda `` argument.
170
+
171
+ To target a specific architecture (e.g., ``sm_80 ``):
172
+
173
+ .. code-block :: bash
174
+
175
+ python scripts/build_locally.py --verbose --target-cuda=sm_80
176
+
177
+ To use the default architecture (``sm_50 ``), omit the value:
178
+
179
+ .. code-block :: bash
180
+
181
+ python scripts/build_locally.py --verbose --target-cuda
182
+
183
+ Alternatively, you can use the ``DPCTL_TARGET_CUDA `` CMake option:
171
184
172
185
.. code-block :: bash
173
186
174
187
python scripts/build_locally.py --verbose --cmake-opts=" -DDPCTL_TARGET_CUDA=sm_80"
175
188
176
- To use the default architecture (``sm_50 ``),
189
+ To use the default architecture (``sm_50 ``) with CMake options ,
177
190
set ``DPCTL_TARGET_CUDA `` to a value such as ``ON ``, ``TRUE ``, ``YES ``, ``Y ``, or ``1 ``:
178
191
179
192
.. code-block :: bash
@@ -192,12 +205,11 @@ Compute Capabilities can be found in the official
192
205
AMD build
193
206
~~~~~~~~~
194
207
195
- ``dpctl `` can be built for AMD devices using the ``DPCTL_TARGET_HIP `` CMake option,
196
- which requires specifying a compute architecture string:
208
+ ``dpctl `` can be built for AMD devices using the ``--target-hip `` argument.
197
209
198
210
.. code-block :: bash
199
211
200
- python scripts/build_locally.py --verbose --cmake-opts= " -DDPCTL_TARGET_HIP= <arch>"
212
+ python scripts/build_locally.py --verbose --target-hip= < arch>
201
213
202
214
Note that the `oneAPI for AMD GPUs ` plugin requires the architecture be specified and only
203
215
one architecture can be specified at a time.
@@ -208,11 +220,17 @@ To determine the architecture code (``<arch>``) for your AMD GPU, run:
208
220
rocminfo | grep ' Name: *gfx.*'
209
221
210
222
This will print names like ``gfx90a ``, ``gfx1030 ``, etc.
211
- You can then use one of them as the argument to ``-DDPCTL_TARGET_HIP ``.
223
+ You can then use one of them as the argument to ``--target-hip ``.
212
224
213
225
For example:
214
226
215
227
.. code-block :: bash
228
+ python scripts/build_locally.py --verbose --target-hip=gfx1030
229
+
230
+ Alternatively, you can use the ``DPCTL_TARGET_HIP `` CMake option:
231
+
232
+ .. code-block :: bash
233
+
216
234
python scripts/build_locally.py --verbose --cmake-opts=" -DDPCTL_TARGET_HIP=gfx1030"
217
235
218
236
Multi-target build
@@ -225,8 +243,7 @@ devices at the same time:
225
243
226
244
.. code-block :: bash
227
245
228
- python scripts/build_locally.py --verbose --cmake-opts=" -DDPCTL_TARGET_CUDA=ON \
229
- -DDPCTL_TARGET_HIP=gfx1030"
246
+ python scripts/build_locally.py --verbose --target-cuda --target-hip=gfx1030
230
247
231
248
Running Examples and Tests
232
249
==========================
0 commit comments