@@ -166,14 +166,27 @@ A full list of available SYCL alias targets is available in the
166166CUDA build
167167~~~~~~~~~~
168168
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:
171184
172185.. code-block :: bash
173186
174187 python scripts/build_locally.py --verbose --cmake-opts=" -DDPCTL_TARGET_CUDA=sm_80"
175188
176- To use the default architecture (``sm_50 ``),
189+ To use the default architecture (``sm_50 ``) with CMake options ,
177190set ``DPCTL_TARGET_CUDA `` to a value such as ``ON ``, ``TRUE ``, ``YES ``, ``Y ``, or ``1 ``:
178191
179192.. code-block :: bash
@@ -192,12 +205,11 @@ Compute Capabilities can be found in the official
192205AMD build
193206~~~~~~~~~
194207
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.
197209
198210.. code-block :: bash
199211
200- python scripts/build_locally.py --verbose --cmake-opts= " -DDPCTL_TARGET_HIP= <arch>"
212+ python scripts/build_locally.py --verbose --target-hip= < arch>
201213
202214 Note that the `oneAPI for AMD GPUs ` plugin requires the architecture be specified and only
203215one architecture can be specified at a time.
@@ -208,11 +220,17 @@ To determine the architecture code (``<arch>``) for your AMD GPU, run:
208220 rocminfo | grep ' Name: *gfx.*'
209221
210222 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 ``.
212224
213225For example:
214226
215227.. 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+
216234 python scripts/build_locally.py --verbose --cmake-opts=" -DDPCTL_TARGET_HIP=gfx1030"
217235
218236 Multi-target build
@@ -225,8 +243,7 @@ devices at the same time:
225243
226244.. code-block :: bash
227245
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
230247
231248 Running Examples and Tests
232249==========================
0 commit comments