Rocky Linux

Rocky Linux is based on Red Hat Enterprise Linux (RHEL), but is a free software / open source rebuild.

Rocky Linux is used by many of the clusters in the Top500.

ROCm release 6.0.2 is compatible with RHEL 9.3, 9.2, 8.9 and 8.8. “Presumably”, it is compatible with the corresponding release of Rocky.

The latest Rocky version 9.3 will be used here.

Documentation

Rocky Linux Documentation:

Install

Download Rocky Linux.

Write to USB drive, boot thing, install.

URLs for minimal, DVD, and DVD torrent, respectively:

Write to USB drive, make sure device is correct…

sudo dd if=Rocky-9.3-x86_64-minimal.iso of=/dev/sdXX bs=16M status=progress oflag=sync

Configuration

Setup, perhaps as so:

  • ssh keys.

  • After all packages installed, add to groups: dialout video audio users kvm render mock

Packages

Update the machine and install packages.

sudo dnf config-manager --enable crb
sudo dnf install epel-release
sudo dnf update
sudo dnf install git python3-devel cmake ninja-build ncurses-devel \
  gcc-c++ libdrm-devel systemd-devel ccache telnet libtool rpm-build \
  libibverbs-devel librdmacm-devel mock \
  gcc-gfortran hwloc-devel hwloc-gui java-devel libevent-devel \
  libfabric-devel libpsm2-devel opensm-devel papi-devel \
  perl-generators pmix-devel rpm-mpi-hooks \
  SuperLU-devel doxygen-latex libtool-ltdl-devel openblas-devel \
  ptscotch-mpich-devel ptscotch-openmpi-devel python-sphinx  \
  python-sphinx-latex python-sphinx-theme-alabaster python3-breathe \
  superlu_dist-mpich-devel superlu_dist-openmpi-devel tex latexmk \
  texlive-threeparttable

ROCm

Install ROCm.

sudo tee /etc/yum.repos.d/amdgpu.repo <<EOF
[amdgpu]
name=amdgpu
baseurl=https://repo.radeon.com/amdgpu/6.0.2/rhel/9.3/main/x86_64/
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF

sudo tee --append /etc/yum.repos.d/rocm.repo <<EOF
[ROCm-6.0.2]
name=ROCm6.0.2
baseurl=https://repo.radeon.com/rocm/rhel9/6.0.2/main
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF

sudo yum clean all
sudo yum install amdgpu-dkms
# sudo reboot
sudo dnf install rocm rocm-bandwidth-test
sudo dnf install epel-release

Source

Git repo: