Post-installation instructions#
2024-11-21
4 min read time
After installing ROCm, follow these steps to finalize and validate the installation.
Configure the system linker by indicating where to find the shared objects (
.so
files) for the ROCm applications.sudo tee --append /etc/ld.so.conf.d/rocm.conf <<EOF /opt/rocm/lib /opt/rocm/lib64 EOF sudo ldconfig
Configure the path to the ROCm binary using either the
update-alternatives
orenvironment-modules
Linux utilities. The ROCm installation process adds the ROCm executables to these systems, provided they are installed on the system.update-alternatives
:The
update-alternatives
utility is available on most Linux distributions. It helps manage multiple versions of a command or program. For more information aboutupdate-alternatives
, see the Linux man page.To use
update-alternatives
, follow these steps:List all the ROCm commands that are supported:
update-alternatives --list rocm
If you have installed multiple ROCm versions,
update-alternatives
is automatically configured to use the latest version. To switch between installed versions, use this command:update-alternatives --config rocm
environment-modules
:The
environment-modules
tool simplifies shell initialization. It lets you modify your session environment using module files. For more information, see the Environment Modules documentation.To use
environment-modules
, follow these instructions:List the ROCm versions that are available:
module avail
If multiple ROCm versions are installed, switch between them using this command:
module load rocm/<version>
Note
The ROCm module file is located at
/opt/rocm-<ver>/lib/rocmmod
.If
update-alternatives
isn’t available on the system, set thePATH
variable to/opt/rocm-<ver>/bin
.export PATH=$PATH:/opt/rocm-6.3.0/bin
Verify the kernel-mode driver installation.
dkms status
Export LD_LIBRARY_PATH as needed
Important
This step is required for version specific or multi-version installations.
export LD_LIBRARY_PATH=/opt/rocm-6.3.0/lib
Verify the ROCm installation.
rocminfo clinfo
Verify the package installation.
apt list --installed
dnf list installed
dnf list installed
zypper search --installed-only