Skip to content

ROCm Utilities: rocm_techsupport.sh techsupport log collection utility for troubleshooting, rocminstall.py script to install ROCm releases side-by-side,

Notifications You must be signed in to change notification settings

ROCmSupport/rocminstaller

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

rocm_techsupport.sh V1.23 Shell Utility for Ubuntu/CentOS/SLES/docker log collection from last 3 boots

NOTE: To enable persistent boot logs across reboots, please run:

  sudo mkdir -p /var/log/journal
  sudo systemctl restart systemd-journald.service

Download rocm_techsupport.sh shell script using:

wget -O rocm_techsupport.sh --no-check-certificate https://raw.githubusercontent.com/srinivamd/rocminstaller/master/rocm_techsupport.sh

Example Usage:

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

NOTE: Install dkms, kernel headers, gcc packages on OS BEFORE installing ROCm Kernel

Section CentOS

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

Section: Ubuntu

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

NOTE: On SLES15, the script uses zypper and requires user interaction

Section: Install ROCm

Download Python3 rocminstall.py script:

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

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

About

ROCm Utilities: rocm_techsupport.sh techsupport log collection utility for troubleshooting, rocminstall.py script to install ROCm releases side-by-side,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.4%
  • Shell 18.6%