Skip to content

Commit

Permalink
multi version needs to differentiate from repo.radeon.com folder path…
Browse files Browse the repository at this point in the history
…, and actual package version
  • Loading branch information
yhuiYH committed Aug 26, 2024
1 parent bddd09f commit 073ba1e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

# ROCm version numbers
rocm_version = '6.2'
rocm_multi_versions = '6.2.0 6.1.2'
rocm_multi_versions = '6.2 6.1.2' # in 6.2, the folder names on repo.radeon.com use 6.2 for minor releases
rocm_multi_versions_package_versions = '6.2.0 6.1.2' # however, in multi, the packages use 6.2.0
rocm_directory_version = '6.2.0' # in 6.0 rocm was located in /opt/rocm-6.0.0
amdgpu_version = '6.2' # directory in https://repo.radeon.com/rocm/apt/ and https://repo.radeon.com/amdgpu-install/
amdgpu_install_version = '6.2.60200-1' # version in https://repo.radeon.com/amdgpu-install/6.0.2/ubuntu/jammy/
Expand Down Expand Up @@ -66,6 +67,7 @@
rst_prolog = f"""
.. |rocm_version| replace:: {rocm_version}
.. |rocm_multi_versions| replace:: {rocm_multi_versions}
.. |rocm_multi_versions_package_versions| replace:: {rocm_multi_versions_package_versions}
.. |amdgpu_version| replace:: {amdgpu_version}
.. |rocm_directory_version| replace:: {rocm_directory_version}
.. |amdgpu_install_version| replace:: {amdgpu_install_version}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
.. code-block:: bash
:substitutions:
for ver in |rocm_multi_versions|; do
for ver in |rocm_multi_versions_package_versions|; do
sudo dnf install rocm$ver
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
.. code-block:: bash
:substitutions:
for ver in |rocm_multi_versions|; do
for ver in |rocm_multi_versions_package_versions|; do
sudo zypper --gpg-auto-import-keys install rocm$ver
done
Expand Down
6 changes: 3 additions & 3 deletions docs/install/native-install/includes/ubuntu-multi-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
:substitutions:
{% if os_version == '24.04' %}
for ver in 6.2.0; do
for ver in 6.2; do
{% else %}
for ver in |rocm_multi_versions|; do
{% endif %}
Expand All @@ -44,7 +44,7 @@
:substitutions:
{% if os_version == '24.04' %}
for ver in 6.2.0; do
for ver in 6.2; do
{% else %}
for ver in |rocm_multi_versions|; do
{% endif %}
Expand All @@ -70,7 +70,7 @@
.. code-block:: bash
:substitutions:
for ver in |rocm_multi_versions|; do
for ver in |rocm_multi_versions_package_versions|; do
sudo apt install rocm$ver
done
Expand Down

0 comments on commit 073ba1e

Please sign in to comment.