Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add documentation on building for AMD devices to dpctl installation g…
…uide
  • Loading branch information
ndgrigorian committed Nov 22, 2024
commit c316380cdd2210f6d028d127b2e67d747a0487b6
18 changes: 17 additions & 1 deletion docs/doc_sources/beginners_guides/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,28 @@ The following plugins from CodePlay are supported:
.. _codeplay_nv_plugin: https://developer.codeplay.com/products/oneapi/nvidia/
.. _codeplay_amd_plugin: https://developer.codeplay.com/products/oneapi/amd/

Build ``dpctl`` as follows:
``dpctl`` can be built for CUDA devices as follows:

.. code-block:: bash

python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_CUDA=ON"

And for AMD devices

.. code-block:: bash

python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"

Note that the `oneAPI for AMD GPUs` plugin requires the architecture be specified and only
one architecture can be specified at a time.

It is, however, possible to build for Intel devices, CUDA devices, and an AMD device
architecture all at once:

.. code-block:: bash

python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_CUDA=ON \
-DDPCTL_TARGET_HIP=gfx1030"

Running Examples and Tests
==========================
Expand Down
3 changes: 3 additions & 0 deletions docs/doc_sources/beginners_guides/managing_devices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ of valid settings are:
* - ``cuda:*``
- All devices only from CUDA backend are available

* - ``hip:*``
- All devices only from HIP backend are available

* - ``level_zero:0,1``
- Two specific devices from Level-Zero backend are available

Expand Down