Skip to content

Commit

Permalink
link cleanup (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa authored Dec 18, 2023
1 parent 5f9f46f commit 5b363c2
Show file tree
Hide file tree
Showing 15 changed files with 63 additions and 68 deletions.
22 changes: 12 additions & 10 deletions docs/how-to/3rd-party/pytorch-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ ROCm provides mixed-precision and large-scale training using our
`MIOpen <https://github.com/ROCmSoftwarePlatform/MIOpen>`_ and
`RCCL <https://github.com/ROCmSoftwarePlatform/rccl>`_ libraries.

To install `PyTorch for ROCm <https://pytorch.org/blog/pytorch-for-amd-rocm-platform-now-available-as-python-package/>`_, you have the following options:
To install
`PyTorch for ROCm <https://pytorch.org/blog/pytorch-for-amd-rocm-platform-now-available-as-python-package/>`_,
you have the following options:

* :ref:`using-docker-with-pytorch-pre-installed`
(recommended)
Expand All @@ -18,7 +20,7 @@ To install `PyTorch for ROCm <https://pytorch.org/blog/pytorch-for-amd-rocm-plat
For hardware, software, and third-party framework compatibility between ROCm and PyTorch, refer to:

* :ref:`system-requirements`
* :doc:`../../reference/3rd-party-support-matrix`
* :ref:`3rd-party-support-matrix`

.. _using-docker-with-pytorch-pre-installed:

Expand Down Expand Up @@ -69,11 +71,11 @@ wheels command, you must select 'Linux', 'Python', 'pip', and 'ROCm' in the matr
* - Base OS
- Docker Image
* - Ubuntu 20.04
- `rocm/dev-ubuntu-20.04 <https://hub.docker.com/r/rocm/dev-ubuntu-20.04>`
- `rocm/dev-ubuntu-20.04 <https://hub.docker.com/r/rocm/dev-ubuntu-20.04>`_
* - Ubuntu 22.04
- `rocm/dev-ubuntu-20.04 <https://hub.docker.com/r/rocm/dev-ubuntu-22.04>`
- `rocm/dev-ubuntu-20.04 <https://hub.docker.com/r/rocm/dev-ubuntu-22.04>`_
* - CentOS 7
- `rocm/dev-centos-7 <https://hub.docker.com/r/rocm/dev-centos-7>`
- `rocm/dev-centos-7 <https://hub.docker.com/r/rocm/dev-centos-7>`_

b. Pull the selected image.

Expand Down Expand Up @@ -119,7 +121,7 @@ wheels command, you must select 'Linux', 'Python', 'pip', and 'ROCm' in the matr
pip3 install wheel setuptools
3. Install ``torch``, ``torchvision``, and ``torchaudio``, as specified in the
`installation matrix <https://pytorch.org/get-started/locally/>`.
`installation matrix <https://pytorch.org/get-started/locally/>`_.

.. note::

Expand All @@ -135,8 +137,7 @@ wheels command, you must select 'Linux', 'Python', 'pip', and 'ROCm' in the matr
PyTorch uses `MIOpen <https://github.com/ROCmSoftwarePlatform/MIOpen>`_ for machine learning
primitives, which are compiled into kernels at runtime. Runtime compilation causes a small warm-up
phase when starting PyTorch, and MIOpen kdb files contain precompiled kernels that can speed up
application warm-up phases. For more information, refer to the
{doc}`MIOpen installation page <miopen:install>`.
application warm-up phases.

MIOpen kdb files can be used with ROCm PyTorch wheels. However, the kdb files need to be placed in
a specific location with respect to the PyTorch installation path. A helper script simplifies this task by
Expand Down Expand Up @@ -232,7 +233,7 @@ scripts to determine the configuration of the build environment.
./.ci/pytorch/build.sh
This converts PyTorch sources for
[HIP compatibility](https://www.amd.com/en/developer/rocm-hub/hip-sdk.html) and builds the
`HIP compatibility <https://www.amd.com/en/developer/rocm-hub/hip-sdk.html>`_ and builds the
PyTorch framework.

To check if your build is successful, run:
Expand Down Expand Up @@ -455,7 +456,8 @@ MNIST PyTorch example
ImageNet PyTorch example
---------------------------------------------------------------------------------------------------------

1. Clone the PyTorch examples repository (if you didn't already do this step in the preceding MNIST example).
1. Clone the PyTorch examples repository (if you didn't already do this in the preceding MNIST
example).

.. code-block:: bash
Expand Down
4 changes: 2 additions & 2 deletions docs/how-to/3rd-party/tensorflow-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ To install TensorFlow using the wheels package, follow these steps:
.. note::

For details on `tensorflow-rocm` wheels and ROCm version compatibility, see:
`https://github.com/ROCmSoftwarePlatform/tensorflow-upstream/blob/develop-upstream/rocm_docs/tensorflow-rocm-release.md <https://github.com/ROCmSoftwarePlatform/tensorflow-upstream/blob/develop-upstream/rocm_docs/tensorflow-rocm-release.md>`_
For details on `tensorflow-rocm` wheels and ROCm version compatibility, refer to our
`GitHub repo <https://github.com/ROCmSoftwarePlatform/tensorflow-upstream/blob/develop-upstream/rocm_docs/tensorflow-rocm-release.md>`_

Test the TensorFlow installation
=======================================
Expand Down
9 changes: 3 additions & 6 deletions docs/how-to/amdgpu-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Installation via AMDGPU installer
and its components.

.. warning::
ROCm currently doesn't support integrated graphics. Should your system have an
ROCm doesn't currently support integrated graphics. Should your system have an
AMD IGP installed, disable it in the BIOS prior to using ROCm. If the driver can
enumerate the IGP, the ROCm runtime may crash the system, even if told to omit
it via :ref:`hip_visible_devices`.
Expand Down Expand Up @@ -117,12 +117,11 @@ output below.
- ROCm math libraries
- HIP development libraries
Upgrading ROCm
=================================================

The upgrade procedure with the installer script is exactly the same as
:ref:`installing for first time use. <amdgpu-install-installation>`
:ref:`installing for first time use<amdgpu-install-installation>`.

Installing ROCm packages
=================================================
Expand Down Expand Up @@ -199,9 +198,7 @@ install except the latest one. The amdgpu-install script automatically adds the
required repositories for the latest release.

See the section "Register ROCm Packages" in :doc:`/how-to/native-install/index`
for:

- :ref:`Ubuntu <ubuntu-register-rocm>`
for :ref:`Ubuntu<ubuntu-register-rocm>`.

Additional options
=================================================
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The ROCm runtimes make use of multiple device files:
GPU. Where ``<node>`` is a number for each card in the system starting from 128.

Exposing these devices to a container is done by using the
[``--device``](https://docs.docker.com/engine/reference/commandline/run/#device)
`--device <https://docs.docker.com/engine/reference/commandline/run/#device>`_
option, i.e. to allow access to all GPUs expose ``/dev/kfd`` and all
``/dev/dri/renderD`` devices:

Expand Down
14 changes: 8 additions & 6 deletions docs/how-to/native-install/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,25 @@ Installation via native package manager

.. grid-item-card:: Install

- :doc:`Ubuntu </how-to/native-install/ubuntu>`
- :doc:`Red Hat Enterprise Linux </how-to/native-install/rhel>`
- :doc:`SUSE Linux Enterprise </how-to/native-install/sle>`
- :doc:`Ubuntu</how-to/native-install/ubuntu>`
- :doc:`Red Hat Enterprise Linux</how-to/native-install/rhel>`
- :doc:`SUSE Linux Enterprise</how-to/native-install/sle>`

.. grid-item-card:: Upgrade

Instructions for upgrading an existing ROCm installation.

- :ref:`Ubuntu <ubuntu-upgrade>`
- :ref:`Ubuntu<ubuntu-upgrade>`

.. grid-item-card:: Uninstall

Steps for removing ROCm packages libraries and tools.

- :ref:`Ubuntu <ubuntu-uninstall>`
- :ref:`Ubuntu<ubuntu-uninstall>`

.. grid-item-card:: Package manager integration
:link: package-manager-integration

See also: :doc:`/reference/system-requirements`
Required meta-packages for ROCm programming models.

See also: :doc:`/reference/system-requirements`.
10 changes: 5 additions & 5 deletions docs/how-to/native-install/package-manager-integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ All meta-packages are a combination of required packages and libraries.
:width: 1500
:alt: ROCm meta packages

.. note::
The preceding figure is for informational purposes only. The individual packages in a meta-package
are subject to change. To avoid conflicts, install meta-packages, not individual packages.

**Example:**

- ``rocm-hip-runtime`` is used to deploy on supported machines to execute HIP
applications.
- ``rocm-hip-sdk`` contains runtime components to deploy and execute HIP
applications.
applications.

.. note::
``rocm-llvm`` is not a meta-package; it's a single package that installs the ROCm Clang compiler files.
Expand Down Expand Up @@ -265,7 +269,3 @@ The following table shows the meta-packages and their associated (meta-)packages
| | ``openmp-extras-runtime``, |
| | ``rocm-core`` |
+----------------------------+---------------------------------+

.. note::
The figure above is for informational purposes only, as the individual packages in a meta-package are subject to change.
Install meta-packages, and not individual packages, to avoid conflicts.
2 changes: 1 addition & 1 deletion docs/how-to/native-install/post-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Post-installation instructions
*************************************************************************

1. Configure system linker.
1. Configure the system linker.

Instruct the system linker where to find shared objects (``.so``-files) for ROCm applications.

Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/native-install/rhel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Install ROCm packages
sudo yum install rocm-hip-sdk
Perform :doc:`post-install`.
Complete the :doc:`post-install`.
Upgrade
=====================================================
Expand Down
3 changes: 1 addition & 2 deletions docs/how-to/native-install/sle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ Install ROCm packages
sudo zypper --gpg-auto-import-keys install rocm-hip-sdk
Perform :doc:`post-install`.
Complete the :doc:`post-install`.
Upgrading
================================================
Expand Down
5 changes: 2 additions & 3 deletions docs/how-to/native-install/ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Add the AMDGPU repository for the driver.
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/|rocm_version|/ubuntu {{ os_release }} main" \
| sudo tee /etc/apt/sources.list.d/amdgpu.list
sudo apt update
sudo apt update
{% endfor %}

.. _ubuntu-register-rocm:
Expand All @@ -72,7 +72,6 @@ Add the ROCm repository.
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/|rocm_version| {{ os_release }} main" \
| sudo tee --append /etc/apt/sources.list.d/rocm.list
done
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
| sudo tee /etc/apt/preferences.d/rocm-pin-600
{% endfor %}
Expand All @@ -97,7 +96,7 @@ Install ROCm packages
sudo apt install rocm-hip-sdk
Perform :doc:`post-install`.
Complete the :doc:`post-install`.

.. _ubuntu-upgrade:

Expand Down
14 changes: 5 additions & 9 deletions docs/how-to/prerequisites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,13 @@ Kernel headers and development packages
================================================================

The driver package uses
:abbr:`DKMS (Dynamic Kernel Module Support)` [DKMS-wiki]_ to build
the `amdgpu-dkms` module (driver) for the installed kernels. This requires the
Linux kernel headers and modules to be installed for each. Usually these are
automatically installed with the kernel, but if you have multiple kernel
versions or you have downloaded the kernel images and not the kernel
`DKMS (Dynamic Kernel Module Support) <https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support>`_
to build the `amdgpu-dkms` module (driver) for the installed kernels. This requires the Linux kernel
headers and modules to be installed for each. Usually these are automatically installed with the kernel,
but if you have multiple kernel versions or you have downloaded the kernel images and not the kernel
meta-packages then they must be manually installed.

.. [DKMS-wiki] https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support
To install for the currently active kernel run the command corresponding
to your distribution.
To install for the currently active kernel run the command corresponding to your distribution.

.. tab-set::

Expand Down
12 changes: 5 additions & 7 deletions docs/how-to/spack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ exotic architectures using libraries that do not have a standard ABI. Spack is n
a new version does not break existing installations, so many configurations can coexist on the same
system.

Most importantly, Spack is *simple*. It offers a simple *spec* syntax, so users can concisely specify
Most importantly, Spack is *simple*. It offers a simple ``spec`` syntax, so users can concisely specify
versions and configuration options. Spack is also simple for package authors: package files are written
in pure Python, and specs allow package authors to maintain a single file for many different builds of
the same package. For more information on Spack, see the
`Spack tutorial <https://spack-tutorial.readthedocs.io/en/latest/>`_.
the same package.

ROCM packages in Spack
===================================================
Expand Down Expand Up @@ -133,7 +132,7 @@ ROCM packages in Spack
Building ROCm components using Spack
===================================================

1. To use the spack package manager, clone the Spack project from GitHub.
1. To use the Spack package manager, clone the Spack project from GitHub.

.. code-block:: shell
Expand Down Expand Up @@ -283,8 +282,7 @@ Creating an environment

You can create an environment with all the required components of your version.

1. In the root folder, create a new folder when you can create a ``.yaml`` file. This file is used to
create an environment.
1. In the root folder, create a new folder when you can create a ``.yaml`` file. This file is used to create an environment.

.. code-block:: shell
Expand Down Expand Up @@ -320,7 +318,7 @@ create an environment.

.. code-block:: shell
spack env activate /localscratch/MyEnvironment
spack env activate /localscratch/MyEnvironment
5. Verify that you want all the component versions.

Expand Down
8 changes: 5 additions & 3 deletions docs/reference/3rd-party-support-matrix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ applications.
- COMPATIBLE
- COMPATIBLE

The Unified Collective Communication (`UCC <https://github.com/openucx/ucc>`_) library also has
The `Unified Collective Communication (UCC) <https://github.com/openucx/ucc>`_ library also has
support for ROCm devices.

.. list-table::
Expand All @@ -100,7 +100,8 @@ support for ROCm devices.
- COMPATIBLE
- COMPATIBLE

## Algorithm libraries
Algorithm libraries
================================================

ROCm releases provide algorithm libraries with interfaces compatible with
contemporary CUDA / NVIDIA HPC SDK alternatives.
Expand Down Expand Up @@ -151,4 +152,5 @@ contemporary CUDA / NVIDIA HPC SDK alternatives.
- 3.0.0
- 22.9

For the latest documentation of these libraries, refer to :doc:`API libraries <../../reference/library-index.md>`.
For the latest documentation of these libraries, refer to the
`ROCm API libraries <https://rocm.docs.amd.com/en/latest/reference/library-index.html>`_.
20 changes: 10 additions & 10 deletions docs/reference/system-requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ System requirements
Supported GPUs
=============================================

The table below shows supported GPUs for Instinct™, Radeon Pro™ and Radeon™ GPUs.
Please click the tabs below to switch between GPU product lines.
If a GPU is not listed on this table, the GPU is not officially supported by AMD.
The following table shows the supported GPUs for Instinct™, Radeon Pro™ and Radeon™ GPUs. If a
GPU is not listed on this table, It's not officially supported by AMD.

.. tab-set::

Expand All @@ -21,7 +20,7 @@ If a GPU is not listed on this table, the GPU is not officially supported by AMD

* - GPU
- Architecture
- LLVM Target
- LLVM target
- Support

* - AMD Instinct™ MI300X
Expand Down Expand Up @@ -68,7 +67,7 @@ If a GPU is not listed on this table, the GPU is not officially supported by AMD

* - GPU
- Architecture
- LLVM Target
- LLVM target
- Support

* - AMD Radeon™ Pro W7900
Expand Down Expand Up @@ -96,7 +95,7 @@ If a GPU is not listed on this table, the GPU is not officially supported by AMD

* - GPU
- Architecture
- LLVM Target
- LLVM target
- Support

* - AMD Radeon™ RX 7900 XTX
Expand All @@ -110,13 +109,14 @@ If a GPU is not listed on this table, the GPU is not officially supported by AMD

Support status:

✅: **Supported** - AMD enables these GPUs in our software distributions for the corresponding ROCm product.
⚠️: **Deprecated** - Support will be removed in a future release.
❌: **Unsupported** - This configuration is not enabled in our software distributions.
✅: **Supported** - AMD enables these GPUs in our software distributions for the corresponding
ROCm product.\
⚠️: **Deprecated** - Support will be removed in a future release.\
❌: **Unsupported** - This configuration is not enabled in our software distributions.\

.. [#]
MI300A is currently not officially supported on RHEL 9.x.
This will be added on a later date.
This will be added on a later date.
Supported operating systems
=============================================
Expand Down
Loading

0 comments on commit 5b363c2

Please sign in to comment.