-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Azure Linux 3.0 to Installation Instruction (#401)
* add AZL3.0 to QS * add extra newline * remove unused register notice * add AZL to prereq * remove unnecessary tab for ubuntu * add AZL for prereq addtional package section * modify AZL package notes * add AZL for package manager * TOC shared file experiment * test toc setting * change file to url * format url path * test TOC * toc experiment failed, revert all changes * revert index.rst * restructure package manager files * fix typos in toc * restructure amdgpu-installer content * change amdgpu-installer index page * change gutter value to 3 * rename folder native-install to install-methods and all related links * remove unexpected indentation * add azl for amdgpu-installer * remove extra note label * remove labels in common file to avoid duplicated labels * resolve tab-item error * fix index page links * post-instal path change * azure package manager uninstall * fix admgpu-installer uninstall links * fix amdgpu-install uninstall reference issue * fix typo * add amdgpu-installer-common.rst to conf.py exclude pattern list * add sudo to wordlist * correct AZL amdgpu-installer instruction + add more unstallation sections * add a newline * update AZL package manager's uninstall cmds * fix variables * add AZL to post-install * change TOC entried from short form to long form * Update docs/install/install-methods/amdgpu-installer/amdgpu-installer-azl.rst Co-authored-by: Leo Paoletti <[email protected]> * Update docs/install/install-methods/amdgpu-installer/amdgpu-installer-azl.rst Co-authored-by: Leo Paoletti <[email protected]> * refine wording * refine wording * remove unnecessary sentence * refine wording * add a - * refine wording * change important banner to caution banner to follow our styling guide --------- Co-authored-by: Alex Xu <[email protected]> Co-authored-by: Leo Paoletti <[email protected]> (cherry picked from commit 348b3b0)
- Loading branch information
1 parent
facda53
commit 9178301
Showing
32 changed files
with
1,187 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ whl | |
ub | ||
udev | ||
Udev | ||
sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.. meta:: | ||
:description: Installation via AMDGPU installer | ||
:keywords: ROCm install, installation instructions, AMDGPU installer, AMD, | ||
ROCm | ||
|
||
****************************************************************************** | ||
Installation via AMDGPU installer | ||
****************************************************************************** | ||
|
||
Select the install instructions for your operating system | ||
|
||
.. grid:: 2 | ||
:gutter: 3 | ||
|
||
.. grid-item-card:: Install | ||
|
||
* :doc:`Ubuntu <./amdgpu-installer/amdgpu-installer-ubuntu>` | ||
* :doc:`Debian <./amdgpu-installer/amdgpu-installer-debian>` | ||
* :doc:`Red Hat Enterprise Linux <./amdgpu-installer/amdgpu-installer-rhel>` | ||
* :doc:`Oracle Linux <./amdgpu-installer/amdgpu-installer-ol>` | ||
* :doc:`SUSE Linux Enterprise Server <./amdgpu-installer/amdgpu-installer-sles>` | ||
* :doc:`Azure Linux <./amdgpu-installer/amdgpu-installer-azl>` | ||
|
||
.. grid-item-card:: Uninstall | ||
|
||
* :ref:`Ubuntu <ubuntu-amdgpu-install-uninstall>` | ||
* :ref:`Debian <debian-amdgpu-install-uninstall>` | ||
* :ref:`Red Hat Enterprise Linux <rhel-amdgpu-install-uninstall>` | ||
* :ref:`Oracle Linux <ol-amdgpu-install-uninstall>` | ||
* :ref:`SUSE Linux Enterprise Server <sles-amdgpu-install-uninstall>` | ||
* :ref:`Azure Linux <azl-amdgpu-install-uninstall>` | ||
|
||
|
||
|
||
|
||
See also: :doc:`/reference/system-requirements`. If you encounter install issues, you can refer to the | ||
:doc:`troubleshooting </reference/install-faq>` page. |
220 changes: 220 additions & 0 deletions
220
docs/install/install-methods/amdgpu-installer/amdgpu-installer-azl.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
.. meta:: | ||
:description: Azure Linux AMDGPU installer installation | ||
:keywords: installation instructions, AMDGPU, AMDGPU installer, AMD, ROCm, Azure Linux, Azure Linux AMDGPU installer installation | ||
|
||
************************************************************************************* | ||
Azure Linux AMDGPU installer installation | ||
************************************************************************************* | ||
|
||
``amdgpu-install`` is a tool that helps you install and update AMDGPU, ROCm, and ROCm components. | ||
|
||
.. warning:: | ||
|
||
ROCm doesn't support integrated graphics. If your system has an | ||
AMD IGP installed, disable it in the BIOS prior to using ROCm. If the driver can | ||
enumerate the IGP, the ROCm runtime might crash the system, even if told to omit | ||
it via `HIP_VISIBLE_DEVICES <https://rocm.docs.amd.com/en/latest/conceptual/gpu-isolation.html#hip-visible-devices>`_. | ||
|
||
.. _azl-amdgpu-install-installation: | ||
|
||
Installation | ||
================================================= | ||
|
||
.. caution:: | ||
|
||
Ensure that the :doc:`/install/prerequisites` are met before installing. | ||
|
||
.. datatemplate:nodata:: | ||
.. tab-set:: | ||
{% for os_version in config.html_context['azl_version_numbers'] %} | ||
{% set os_major, _ = os_version.split('.') %} | ||
.. tab-item:: AZL {{ os_version }} | ||
|
||
.. code-block:: bash | ||
:substitutions: | ||
sudo tdnf install https://repo.radeon.com/amdgpu-install/|amdgpu_version|/azurelinux/{{ os_version }}/amdgpu-install-|amdgpu_install_version|.azl{{ os_major }}.noarch.rpm --nogpgcheck | ||
{% endfor %} | ||
|
||
.. _azl-amdgpu-install-use-cases: | ||
|
||
Use cases | ||
================================================= | ||
|
||
Instead of installing individual applications or libraries, the installer script groups packages into specific | ||
use cases that match typical workflows and runtimes. | ||
|
||
To display a list of available use cases, run: | ||
|
||
.. code-block:: bash | ||
sudo amdgpu-install --list-usecase | ||
The available use-cases are printed in a format similar to: | ||
|
||
.. code-block:: | ||
If --usecase option is not present, the default selection is "graphics,opencl,hip" | ||
Available use cases: | ||
dkms (to only install the kernel mode driver) | ||
- Kernel mode driver (included in all usecases) | ||
graphics (for users of graphics applications) | ||
- Open source Mesa 3D graphics and multimedia libraries | ||
multimedia (for users of open source multimedia) | ||
- Open source Mesa 3D multimedia libraries | ||
multimediasdk (for developers of open source multimedia) | ||
- Open source Mesa 3D multimedia libraries | ||
- Development headers for multimedia libraries | ||
workstation (for users of legacy WS applications) | ||
- Open source multimedia libraries | ||
- Closed source (legacy) OpenGL | ||
rocm (for users and developers requiring full ROCm stack) | ||
- OpenCL (ROCr/KMD based) runtime | ||
- HIP runtimes | ||
- Machine learning framework | ||
- All ROCm libraries and applications | ||
rocmdev (for developers requiring ROCm runtime and | ||
profiling/debugging tools) | ||
- HIP runtimes | ||
- OpenCL runtime | ||
- Profiler, Tracer and Debugger tools | ||
rocmdevtools (for developers requiring ROCm profiling/debugging tools) | ||
- Profiler, Tracer and Debugger tools | ||
amf (for users of AMF based multimedia) | ||
- AMF closed source multimedia library | ||
lrt (for users of applications requiring ROCm runtime) | ||
- ROCm Compiler and device libraries | ||
- ROCr runtime and thunk | ||
opencl (for users of applications requiring OpenCL on Vega or later | ||
products) | ||
- ROCr based OpenCL | ||
- ROCm Language runtime | ||
openclsdk (for application developers requiring ROCr based OpenCL) | ||
- ROCr based OpenCL | ||
- ROCm Language runtime | ||
- development and SDK files for ROCr based OpenCL | ||
hip (for users of HIP runtime on AMD products) | ||
- HIP runtimes | ||
hiplibsdk (for application developers requiring HIP on AMD products) | ||
- HIP runtimes | ||
- ROCm math libraries | ||
- HIP development libraries | ||
openmpsdk (for users of openmp/flang on AMD products) | ||
- OpenMP runtime and devel packages | ||
mllib (for users executing machine learning workloads) | ||
- MIOpen hip/tensile libraries | ||
- Clang OpenCL | ||
- MIOpen kernels | ||
mlsdk (for developers executing machine learning workloads) | ||
- MIOpen development libraries | ||
- Clang OpenCL development libraries | ||
- MIOpen kernels | ||
asan (for users of ASAN enabled ROCm packages) | ||
- ASAN enabled OpenCL (ROCr/KMD based) runtime | ||
- ASAN enabled HIP runtimes | ||
- ASAN enabled Machine learning framework | ||
- ASAN enabled ROCm libraries | ||
.. _azl-amdgpu-install-dkms: | ||
|
||
Install kernel driver | ||
------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
sudo tdnf install azurelinux-repos-amd | ||
sudo tdnf repolist --refresh | ||
sudo tdnf install amdgpu | ||
sudo modprobe amdgpu | ||
Upgrading ROCm | ||
================================================= | ||
|
||
The upgrade procedure with the installer script is the same as installing it for first-time use. | ||
|
||
Installing ROCm packages | ||
================================================= | ||
|
||
To install use cases specific to your requirements, use the installer (``amdgpu-install``) as follows: | ||
|
||
* To install a single use case, add it with the ``--usecase`` option: | ||
|
||
.. code-block:: bash | ||
sudo amdgpu-install --usecase=rocm --no-dkms | ||
* The ``--help`` option displays all available options for the ``amdgpu-install`` script: | ||
|
||
.. code-block:: bash | ||
sudo amdgpu-install --help | ||
.. _azl-amdgpu-install-uninstall: | ||
|
||
Uninstalling | ||
===================================================== | ||
|
||
Uninstalling ROCm | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
sudo amdgpu-install --uninstall | ||
Uninstall kernel driver | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
sudo tdnf remove amdgpu amdgpu-firmware kernel-drivers-gpu | ||
Uninstalling amdgpu-install | ||
--------------------------------------------------------------------------- | ||
|
||
After uninstalling ROCm and kernel driver, remove the amdgpu-install package from the system. | ||
|
||
.. code-block:: bash | ||
sudo tdnf remove amdgpu-install | ||
Remove ROCm and AMDGPU repositories | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
# Remove the repositories | ||
sudo tdnf remove azurelinux-repos-amd | ||
sudo rm /etc/yum.repos.d/rocm.repo* | ||
sudo rm /etc/yum.repos.d/amdgpu.repo* | ||
# Clear the cache and clean the system | ||
sudo rm -rf /var/cache/tdnf | ||
sudo tdnf clean all | ||
# Restart the system. | ||
sudo reboot | ||
Additional options | ||
================================================= | ||
|
||
* Unattended installation. | ||
|
||
Adding ``-y`` as a parameter to ``amdgpu-install`` skips user prompts (for automation). For example: | ||
|
||
.. code-block:: bash | ||
amdgpu-install -y --usecase=rocm | ||
* Skipping kernel mode driver installation. | ||
|
||
The installer script tries to install the kernel mode driver and the requested use cases. This | ||
might be unnecessary (as in the case of Docker containers). You might want to keep a specific version | ||
when using multi-version installation, and not have the last installed version overwrite the kernel | ||
mode driver. | ||
|
||
To skip the installation of the kernel-mode driver, add the ``--no-dkms`` option when calling the | ||
installer script. |
Oops, something went wrong.