Install hipSPARSE#
Before you begin, verify that your system is supported. For more information, see the ROCm compatibilty matrix.
For advanced workflows, source builds, or custom configurations, see Build and install hipSPARSE for Linux and Build and install hipSPARSE for Windows.
Install the ROCm Core SDK#
hipSPARSE is included with the ROCm Core SDK on Linux. For the most complete
installation, we recommend that developers use the amdrocm-core-sdk meta
package.
For instructions, see Install AMD ROCm. Use the selector panel on that page to view instructions appropriate for your system environment.
Install ROCm sparse math libraries on Linux#
Alternatively, if you want to install hipSPARSE as part of the ROCm
sparse math package (a subset of the ROCm Core SDK amdrocm-core-sdk) without
additional ROCm libraries and tools, install the amdrocm-sparse package.
This includes both hipSPARSE and rocSPARSE.
Complete the ROCm installation prerequisites to install dependencies and configure GPU access permissions.
Install the ROCm sparse math package that matches your desired ROCm version, development package needs, and AMD GPU architecture. Package names use the following format:
amdrocm-sparse<-dev/-devel><rocm_version><-llvm_target>Where:
<-dev/-devel>specifies whether to install the library files and headers. Omit this suffix to only install runtime packages.-devis used on Debian-based distributions, including Ubuntu.-develis used on RPM-based distributions, including RHEL and SLES.
<rocm_version>is the ROCm Core SDK version to install. Omit this suffix to install the latest available version.<-llvm_target>(starting withgfx) is used if you are installing for a single AMD GPU architecture. Omit this to install for all architectures at the cost of disk space.
For example:
amdrocm-sparse-dev7.13-gfx950Use the following command to install the latest sparse math development package release for supported GPU architectures:
sudo apt install amdrocm-sparse-dev
sudo dnf install amdrocm-sparse-devel
sudo zypper install amdrocm-sparse-devel
Install a nightly build#
The TheRock build system also publishes nightly builds for the ROCm Core SDK and its components, including hipSPARSE. See Nightly release status for details.