Install rocALUTION#
You can install rocALUTION on Linux from prebuilt packages either as part of the ROCm HPC SDK, as standalone packages, or from a ROCm Core SDK tarball release. Before you begin, verify that your operating system and environment are supported using the installation selector on Install ROCm HPC SDK.
For advanced workflows, source builds, or custom configurations, see Build rocALUTION from source.
Install the ROCm HPC SDK#
rocALUTION is part of the ROCm HPC SDK on Linux. It is not included in the
ROCm Core SDK through the standard amdrocm metapackage; it is installed
through the opt-in amdrocm-hpc-sdk metapackage. This is the recommended
installation method for the most complete installation.
For instructions, see Install ROCm HPC SDK and use the selector panel to view instructions for your system environment. For ROCm core installation, see Install AMD ROCm.
Install rocALUTION standalone on Linux#
Alternatively, you can use the amdrocm-rocalution packages to install
rocALUTION without the full ROCm HPC SDK.
Complete the ROCm installation prerequisites to install dependencies and configure GPU access permissions.
Install the rocALUTION packages that match your desired ROCm version, development package needs, and AMD GPU architecture. Package names use the following format:
amdrocm-rocalution<rocm_version><-llvm_target> amdrocm-rocalution<-dev/-devel><rocm_version>
Where:
<-dev/-devel>is the development package suffix (headers and CMake configuration files):-devis used on Debian-based distributions, including Ubuntu.-develis used on RPM-based distributions, including RHEL and SLES.
<rocm_version>is the ROCm version to install (for example,10.2). Omit this suffix to install the latest available version. If you include<-llvm_target>, also include<rocm_version>(for example,amdrocm-rocalution10.2-gfx950).<-llvm_target>(starting withgfx) is used on the runtime package if you are installing for a single AMD GPU architecture. Omit this to install for all architectures at the cost of disk space. To find the LLVM target for an installed GPU, runrocminfo | grep gfx.
For example:
amdrocm-rocalution10.2-gfx950andamdrocm-rocalution-dev10.2Use the following commands to install the latest rocALUTION runtime and development packages for supported GPU architectures:
sudo apt install amdrocm-rocalution amdrocm-rocalution-dev
sudo dnf install amdrocm-rocalution amdrocm-rocalution-devel
sudo zypper install amdrocm-rocalution amdrocm-rocalution-devel
Install from a tarball#
The standard ROCm Core SDK tarball installation includes rocALUTION. No additional steps are required. For details, see Install AMD ROCm and select the tarball installation method.
The standard ROCm uninstallation process removes rocALUTION. No additional steps are required.
Install a nightly build#
The TheRock build system also publishes nightly builds for ROCm and its components, including rocALUTION. See Nightly release status for details.
Verify your installation#
After installing the runtime and development packages (or the ROCm HPC SDK), you can verify your installation by compiling and running a minimal smoke test.
Create a file named
test_rocalution.cpp:#include <rocalution/rocalution.hpp> int main() { rocalution::init_rocalution(); rocalution::info_rocalution(); rocalution::stop_rocalution(); return 0; }
Compile and run the program:
hipcc test_rocalution.cpp -lrocalution -o test_rocalution ./test_rocalution
If rocALUTION is installed properly, the program prints the rocALUTION version, confirms that the platform and
HIPaccelerator backend are initialized, and lists your detected AMD GPU.
Uninstall rocALUTION#
If you installed versioned or architecture-specific packages, substitute the
exact package names used during installation (for example,
amdrocm-rocalution10.2-gfx950 and amdrocm-rocalution-dev10.2 or
amdrocm-rocalution-devel10.2).
sudo apt autoremove amdrocm-rocalution amdrocm-rocalution-dev
sudo dnf remove amdrocm-rocalution amdrocm-rocalution-devel
sudo zypper remove 'amdrocm-rocalution*'