Skip to content

Commit 6abfecb

Browse files
authored
Merge pull request #107 from shiv-tyagi/add-cdi-doc
docs: mention --gpus support with CDI starting docker 29.3.0+
2 parents 1184f67 + dbcf2f9 commit 6abfecb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/container-runtime/running-workloads.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ Use ``--device amd.com/gpu=<entry>``. You do **not** need ``--runtime=amd`` when
2323
2424
docker run --rm --device amd.com/gpu=all rocm/rocm-terminal rocm-smi
2525
26+
.. tip::
27+
28+
Starting with Docker **29.3.0**, you can also use ``--gpus <entry>`` directly with CDI, without ``--runtime=amd``. ``<entry>`` can be ``all``, a count (e.g. ``2``), or specific devices (e.g. ``'"device=0,1,2"'``).
29+
30+
.. code-block:: bash
31+
32+
docker run --rm --gpus all rocm/rocm-terminal rocm-smi
33+
2634
Podman
2735
~~~~~~
2836

0 commit comments

Comments
 (0)