Install ROCm Validation Suite#
ROCm Validation Suite (RVS) is supported on AMD Instinct and Radeon GPUs supported by ROCm. See the ROCm compatibility matrix for support information.
For advanced workflows, source builds, or custom configurations, see ROCm/ROCmValidationSuite.
Note
TransferBench is now a part of the ROCm Validation Suite and is installed with it. See the TransferBench documentation for more information.
Prerequisites#
Install the ROCm Core SDK before installing RVS.
For instructions, see Install AMD ROCm. Use the selector panel on that page to view instructions appropriate for your system environment.
ROCm installation path#
The ROCm installation path depends on what installation method was selected during
ROCm installation. After installation, the ROCm Core SDK will be deployed to this
path location and contains all the core ROCm directories such as bin, include,
and lib. When configuring the environment for RVS, you must set the
ROCM_INSTALL_PATH environment variable to the ROCm core installation directory
<rocm-core-path> based on the installation method used:
ROCM_INSTALL_PATH=/opt/rocm/core-7.14 # <rocm-core-path> = /opt/rocm/core-7.14
Use within active python virtual environment:
ROCM_INSTALL_PATH=$(rocm-sdk path --root) # <rocm-core-path> = rocm-sdk path of core installation
ROCM_INSTALL_PATH=<path>/therock-tarball/install # <rocm-core-path> = <path> to default "therock-tarball" installation
ROCM_INSTALL_PATH=/opt/rocm/core-7.14 # <rocm-core-path> = default /opt/rocm/core-7.14 installation (no target=)
ROCM_INSTALL_PATH=<path>/rocm/core-7.14 # <rocm-core-path> = target=<path>
Package manager installation#
Use the following steps to install RVS using your distribution’s package manager on top of the ROCm Core SDK.
Register the RVS repository.
sudo mkdir --parents --mode=0755 /etc/apt/keyrings wget https://repo.amd.com/rocm/packages-multi-arch/gpg/rocm.gpg -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/amdrocm.gpg > /dev/null sudo tee /etc/apt/sources.list.d/rvs.list << EOF deb [arch=amd64 signed-by=/etc/apt/keyrings/amdrocm.gpg] https://repo.amd.com/rocm/rvs/packages/deb/ stable main EOF sudo apt update
sudo tee /etc/yum.repos.d/rvs.repo <<EOF [rvs] name=ROCm Validation Suite baseurl=https://repo.amd.com/rocm/rvs/packages/rpm/x86_64/ enabled=1 gpgcheck=1 gpgkey=https://repo.amd.com/rocm/packages-multi-arch/gpg/rocm.gpg priority=50 EOF sudo dnf clean all
Install the RVS package.
sudo apt install amdrocm7-rvs
sudo dnf install amdrocm7-rvs
Complete the following post-installation steps.
Use the following commands to update your shell configuration file (
~/.bashrcor~/.profile) and add ROCm to your PATH.Set the ROCm installation path based on the ROCm installation method and
<rocm-core-path>:ROCM_INSTALL_PATH=<rocm-core-path> # ie. /opt/rocm/core-7.14
Configure your environment.
sudo tee /etc/profile.d/set-rvs-env.sh << EOF export EXTRAS_PATH=/opt/rocm/extras-7 export ROCM_PATH=$ROCM_INSTALL_PATH export PATH=\$EXTRAS_PATH/bin:\$ROCM_PATH/bin:\$PATH export LD_LIBRARY_PATH=\$EXTRAS_PATH/lib:\$ROCM_PATH/lib:\$ROCM_PATH/lib/llvm/lib:\$LD_LIBRARY_PATH EOF sudo chmod +x /etc/profile.d/set-rvs-env.sh source /etc/profile.d/set-rvs-env.sh
tee --append ~/.bashrc << EOF export EXTRAS_PATH=/opt/rocm/extras-7 export ROCM_PATH=$ROCM_INSTALL_PATH export PATH=\$EXTRAS_PATH/bin:\$ROCM_PATH/bin:\$PATH export LD_LIBRARY_PATH=\$EXTRAS_PATH/lib:\$ROCM_PATH/lib:\$ROCM_PATH/lib/llvm/lib:\$LD_LIBRARY_PATH EOF source ~/.bashrc
Verify your installation.
rvs -g
Note
The ROCm repositories must be set up before installing RVS. This repository setup is part of the ROCm Core SDK installation.
Package manager uninstallation#
Remove installed packages.
sudo apt autoremove amdrocm7-rvs
sudo dnf remove amdrocm7-rvs
Remove RVS repositories.
# Remove RVS repositories sudo rm /etc/apt/sources.list.d/rvs.list # Clear the cache and clean the system sudo rm -rf /var/cache/apt/* sudo apt clean all sudo apt update
# Remove RVS repositories sudo rm /etc/yum.repos.d/rvs.repo # Clear the cache and clean the system sudo rm -rf /var/cache/dnf sudo dnf clean all
Remove RVS environment configuration.
If you opted for a system-wide setup during the installation process, remove the RVS environment variables.
sudo rm -f /etc/profile.d/set-rvs-env.sh
If you opted for a user-specific setup during the installation process, remove the RVS environment configuration block from your shell configuration file (
~/.bashrcor~/.profile).
Tarball installation#
Use the following steps to install RVS using a tarball on top of the ROCm Core SDK.
Install system dependencies.
sudo apt install libpci3 libnuma1
sudo dnf install pciutils-libs numactl-libs
Download the RVS tarball.
wget https://repo.amd.com/rocm/rvs/tarball/amdrocm7-rvs-1.5.122-579-Linux.tar.gzExtract the tarball to the ROCm Extras location.
RVS is part of the ROCm Extras set of tools that work with the ROCm Core SDK. The ROCm Extras location (
EXTRAS_INSTALL_PATH) can be set to a custom location<extras-path>, but is typically set based on the ROCm installation method used.EXTRAS_INSTALL_PATH=<extras-path> # ie. <extras-path> = path to ROCm extras for RVS extract sudo mkdir -p $EXTRAS_INSTALL_PATH sudo tar -xzf amdrocm7-rvs-1.5.122-579-Linux.tar.gz -C $EXTRAS_INSTALL_PATH
Recommended: Set
EXTRAS_INSTALL_PATHto a location within the root install directory for the ROCm Core SDK.For example, if you installed the ROCm Core SDK using your Linux distribution’s package manager:
sudo mkdir -p /opt/rocm/extras-7 sudo tar -xzf amdrocm7-rvs-1.5.122-579-Linux.tar.gz -C /opt/rocm/extras-7
Complete the following post-installation steps.
Use the following commands to update your shell configuration file (
~/.bashrcor~/.profile) and add Extras and ROCm to your PATH.Set the ROCm installation path based on the ROCm installation method and
<rocm-core-path>:ROCM_INSTALL_PATH=<rocm-core-path> # ie. /opt/rocm/core-7.14
Configure your environment.
sudo tee /etc/profile.d/set-rvs-env.sh << EOF export EXTRAS_PATH=$EXTRAS_INSTALL_PATH export ROCM_PATH=$ROCM_INSTALL_PATH export PATH=\$EXTRAS_PATH/bin:\$ROCM_PATH/bin:\$PATH export LD_LIBRARY_PATH=\$EXTRAS_PATH/lib:\$ROCM_PATH/lib:\$ROCM_PATH/lib/llvm/lib:\$LD_LIBRARY_PATH EOF sudo chmod +x /etc/profile.d/set-rvs-env.sh source /etc/profile.d/set-rvs-env.sh
sudo tee /etc/profile.d/set-rvs-env.sh << EOF export EXTRAS_PATH=/opt/rocm/extras-7 export ROCM_PATH=$ROCM_INSTALL_PATH export PATH=\$EXTRAS_PATH/bin:\$ROCM_PATH/bin:\$PATH export LD_LIBRARY_PATH=\$EXTRAS_PATH/lib:\$ROCM_PATH/lib:\$ROCM_PATH/lib/llvm/lib:\$LD_LIBRARY_PATH EOF sudo chmod +x /etc/profile.d/set-rvs-env.sh source /etc/profile.d/set-rvs-env.sh
tee --append ~/.bashrc << EOF export EXTRAS_PATH=$EXTRAS_INSTALL_PATH export ROCM_PATH=$ROCM_INSTALL_PATH export PATH=\$EXTRAS_PATH/bin:\$ROCM_PATH/bin:\$PATH export LD_LIBRARY_PATH=\$EXTRAS_PATH/lib:\$ROCM_PATH/lib:\$ROCM_PATH/lib/llvm/lib:\$LD_LIBRARY_PATH EOF source ~/.bashrc
tee --append ~/.bashrc << EOF export EXTRAS_PATH=/opt/rocm/extras-7 export ROCM_PATH=$ROCM_INSTALL_PATH export PATH=\$EXTRAS_PATH/bin:\$ROCM_PATH/bin:\$PATH export LD_LIBRARY_PATH=\$EXTRAS_PATH/lib:\$ROCM_PATH/lib:\$ROCM_PATH/lib/llvm/lib:\$LD_LIBRARY_PATH EOF source ~/.bashrc
Verify your installation.
rvs -g
Tarball uninstallation#
Remove the installation directory.
Important
The following command assumes you’re working with the
EXTRAS_INSTALL_PATHdirectory set to/opt/rocm/extras-7. If you chose a different directory name when installing RVS, adjust the command accordingly.sudo rm -rf /opt/rocm/extras-7
Remove the RVS environment configuration.
If you opted for a system-wide setup during the installation process, remove the RVS environment variables.
sudo rm -f /etc/profile.d/set-rvs-env.sh
If you opted for a user-specific setup during the installation process, remove the RVS environment configuration block from your shell configuration file (
~/.bashrcor~/.profile).