rocm_techsupport.sh V1.23 Shell Utility for Ubuntu/CentOS/SLES/docker log collection from last 3 boots
sudo mkdir -p /var/log/journal
sudo systemctl restart systemd-journald.service
wget -O rocm_techsupport.sh --no-check-certificate https://raw.githubusercontent.com/srinivamd/rocminstaller/master/rocm_techsupport.sh
mkdir downloads
cd downloads
wget -O rocm_techsupport.sh --no-check-certificate https://raw.githubusercontent.com/srinivamd/rocminstaller/master/rocm_techsupport.sh
#Redirect output to file with SYSTEM_NAME_or_ISSUEID
sudo sh ./rocm_techsupport.sh > SYSTEM_NAME_or_ISSUEID.rocm_techsupport.log 2>&1
Compress/Zip the output file and include with reported issue.
[Supports 3.3, 3.5, 3.7, 3.8, 3.9, 3.10] V1.24 rocminstall.py Utility to install ROCm releases. Supports Ubuntu/Debian, CentOS/RHEL 7/8, SLES15 installation
CentOS 7/8 Preparing System for ROCm Kernel:
sudo yum clean all
sudo yum update (this would update kernel to latest. Do this before installing kernel-headers.)
sudo yum install kernel-headers (OR sudo yum install kernel-headers-`uname -r` )
sudo yum install gcc
sudo yum install gcc-c++
sudo yum install -y epel-release
sudo yum install dkms
sudo yum install kernel-devel (OR sudo yum install kernel-devel-`uname -r` )
sudo yum install python3
sudo reboot (for above updates to take effect)
CentOS/rpm Commands to UNinstall old ROCm rock-dkms rock-dkms-firmware packages for update
sudo rpm -evh rock-dkms rock-dkms-firmware (OR sudo rpm -evh --nodeps rock-dkms rock-dkms-firmware)
sudo reboot
Ubuntu 18 HWE Preparing System for ROCm Kernel
sudo apt-get install --install-recommends linux-generic-hwe-18.04 (Do this before installing linux-headers.)
sudo reboot
sudo apt install dkms
sudo apt install gcc
sudo apt install g++
sudo apt upgrade (this may be needed for kernel updates to correspond with headers, etc.)
sudo reboot (for above upgrade to take effect)
sudo apt install linux-headers ( OR sudo apt install linux-headers-`uname -r` )
sudo apt install linux-tools ( OR sudo apt install linux-tools-`uname -r` )
sudo reboot
Ubuntu dpkg Commands to UNinstall old ROCm rock-dkms rock-dkms-firmware packages for update
sudo dpkg -r --force-all rock-dkms rock-dkms-firmware
sudo dpkg --purge --force-all rock-dkms rock-dkms-firmware
sudo reboot
wget -O rocminstall.py --no-check-certificate https://raw.githubusercontent.com/srinivamd/rocminstaller/master/rocminstall.py
Example: Install ROCm 3.9, including kernel components (assumes dkms, kernel header, gcc preinstalled)
wget -O rocminstall.py --no-check-certificate https://raw.githubusercontent.com/srinivamd/rocminstaller/master/rocminstall.py
sudo python3 ./rocminstall.py --rev 3.9
Example: Install ROCm 3.9 development packages (exclude kernel components)
sudo python3 ./rocminstall.py --rev 3.9 --nokernel
usage: rocminstall.py [-h] [--rev REVSTRING] [--destdir DESTDIR] [--list]
[--repourl REPOURL] [--baseurl BASEURL] [--nokernel]
[--justkernel]
[V1.28]rocminstall.py: utility to download and install ROCm packages for
specified rev (dkms, kernel headers must be installed, requires sudo
privilege)
optional arguments:
-h, --help show this help message and exit
--rev REVSTRING specifies ROCm release repo to use as in
http://repo.radeon.com/rocm/{apt, yum, zyp,
centos8}/<REV> Example: --rev 3.5 for ROCm 3.5 repo
http://repo.radeon.com/rocm/{apt, yum, zyp, centos8}/3.5,
or --rev 3.3 for ROCm 3.3 repo
http://repo.radeon.com/rocm/{apt, yum, zyp}/3.3
--destdir DESTDIR specify directory where to download RPM before
installation. Default: current directory --destdir /tmp
to use /tmp directory
--list just list the packages that will be installed -- do not
download or install
--repourl REPOURL specify ROCm repo URL to use from where to download
packages Example: --repourl http://compute-
artifactory/build/xyz
--baseurl BASEURL specify early access ROCm repo URL to use from where to
download packages Example: --baseurl
http://repo.radeon.com/rocm/private/apt_3.6-priv/
--nokernel do not install rock kernel packages, for example, used to
install ROCm in docker
--justkernel ONLY install rock kernel packages of specified version -
undefined behavior if --nokernel also specified