Skip to content

Commit 4e250d6

Browse files
Document CMake option usage as alternative to --target-cuda/--target-hip
1 parent 3bf2bbc commit 4e250d6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/doc_sources/beginners_guides/installation.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,19 @@ To use the default architecture (``sm_50``), omit the value:
180180
181181
python scripts/build_locally.py --verbose --target-cuda
182182
183+
Alternatively, you can use the ``DPCTL_TARGET_CUDA`` CMake option:
184+
185+
.. code-block:: bash
186+
187+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_CUDA=sm_80"
188+
189+
To use the default architecture (``sm_50``) with CMake options,
190+
set ``DPCTL_TARGET_CUDA`` to a value such as ``ON``, ``TRUE``, ``YES``, ``Y``, or ``1``:
191+
192+
.. code-block:: bash
193+
194+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_CUDA=ON"
195+
183196
Note that kernels are built for the default architecture (``sm_50``), allowing them to work on a
184197
wider range of architectures, but limiting the usage of more recent CUDA features.
185198

@@ -214,6 +227,12 @@ For example:
214227
.. code-block:: bash
215228
python scripts/build_locally.py --verbose --target-hip=gfx1030
216229
230+
Alternatively, you can use the ``DPCTL_TARGET_HIP`` CMake option:
231+
232+
.. code-block:: bash
233+
234+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
235+
217236
Multi-target build
218237
~~~~~~~~~~~~~~~~~~
219238

0 commit comments

Comments
 (0)