Skip to main content

Installation

Build for HIP/ROCm

Download dependencies

If pkg tool is not avaiable on you system, we can run this script to download packages.

./scripts/dl_deps.sh

If pkg tool is used for manager dependency packages, you use following commands to download dependencies:

pkg fetch --features=rocm
pkg install

Build without benchmark features

For DTK environment of Hygon DCU, use the CMake preset rocm-dcc (use dcc as compiler).
e.g. to build on DCU without benchmark feature, run:

cmake --preset=rocm-dcc
cmake --build --preset=rocm-dcc

Build with benchmark features

To enable benchmark features, you can use the following commands to build usparse with benchmark.

For DTK environment of Hygon DCU, use the CMake preset rocm-dcc-benchmark (use dcc as compiler).
e.g. to build on DCU with benchmark feature, run:

cmake --preset=rocm-dcc-benchmark
cmake --build --preset=rocm-dcc-benchmark

Note: When pkg tool is used, you can change cmake option USPARSE_BUILD_DEP_BY_PKG to ON to enable HOLA benchmarking.