Skip to content

Commit 336775d

Browse files
committed
Update ROCm script
1 parent 764c79d commit 336775d

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

drivers/fix_rocm.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# Note that if you have "nomodeset" enabled:
1212
# "WARNING: nomodeset detected in kernel parameters, amdgpu requires KMS"
1313

14-
ROCM_VERSION="6.1.2"
15-
ROCM_VERSION2="6.1.60102-1"
14+
ROCM_VERSION="6.3.3"
15+
ROCM_VERSION2="6.3.60303-1"
1616

1717
if [ "${EUID}" -eq 0 ]; then
1818
echo "This script should not be run as root."
@@ -42,7 +42,7 @@ if command -v amdgpu-install >/dev/null 2>&1; then
4242
sudo amdgpu-install --uninstall --rocmrelease=all
4343
fi
4444
set +e
45-
sudo apt purge --ignore-missing amdgpu-install "rocm-*" "rock-*" rocminfo
45+
sudo apt purge --ignore-missing amdgpu-dkms amdgpu-install "rocm-*" "rock-*" rocminfo
4646
set -e
4747
sudo apt autoremove
4848

@@ -51,29 +51,30 @@ sudo apt dist-upgrade
5151
# Prerequisites
5252
# https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/prerequisites.html
5353
# Clinfo is specified here to ensure that the debug info printing below works.
54-
sudo apt install clinfo "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)" wget
55-
# sudo apt install gnupg2 libnuma-dev
54+
sudo apt install clinfo "linux-headers-$(uname -r)" wget
55+
# sudo apt install gnupg2 libnuma-dev "linux-modules-extra-$(uname -r)"
5656

5757
echo "Setting permissions"
5858
sudo usermod -a -G render,video "${LOGNAME}"
5959

6060
# Installation using package manager
61-
# wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
62-
# echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${ROCM_VERSION}/ ${RELEASE_CHANNEL} main" | sudo tee /etc/apt/sources.list.d/rocm.list
63-
64-
# Installation using amdgpu-install
6561
FILENAME="amdgpu-install_${ROCM_VERSION2}_all.deb"
66-
wget "https://repo.radeon.com/amdgpu-install/${ROCM_VERSION}/ubuntu/jammy/${FILENAME}" -O "${SCRIPT_DIR}/${FILENAME}"
62+
wget "https://repo.radeon.com/amdgpu-install/${ROCM_VERSION}/ubuntu/noble/${FILENAME}" -O "${SCRIPT_DIR}/${FILENAME}"
6763
sudo apt install "${SCRIPT_DIR}/${FILENAME}"
6864

6965
sudo apt update
70-
sudo amdgpu-install --usecase=graphics,rocm
71-
sudo apt install nvtop rocminfo rocm-smi
66+
67+
# Installation using amdgpu-install
68+
# sudo amdgpu-install --usecase=graphics,rocm
69+
70+
# These should be included in rocm: amd-smi-lib rocminfo
71+
# These are legacy: rocm-smi
72+
# A newer version of this is already included in the kernel: amdgpu-dkms
73+
sudo apt install nvtop rocm
7274

7375
# The OpenCL packages should be included in the base rocm installation but are included here just in case.
7476
# sudo apt install rocm-dev rocm-opencl-dev rocminfo
7577

76-
7778
echo "Printing debug info. It may take a reboot for it to update."
7879
clinfo
7980

0 commit comments

Comments
 (0)