What is hipSPARSE

What is hipSPARSE#

hipSPARSE is a library that contains basic linear algebra subroutines for sparse matrices and vectors, written in HIP for GPU devices. It is designed to be called from C and C++ code.

hipSPARSE is a SPARSE marshalling library, with multiple supported backends. It lies between the application and a “worker” SPARSE library, marshalling inputs into the backend library and results back to the application. hipSPARSE exports a common interface that does not require the client to change, regardless of the chosen backend. It supports rocSPARSE and NVIDIA CUDA cuSPARSE as backends.

The hipSPARSE functionality is organized into the following categories:

The source code can be found at ROCm/hipSPARSE.

Note

hipSPARSE focuses on convenience and portability. If performance outweighs these factors, it’s better to use rocSPARSE directly. The rocSPARSE source code can be found on the rocSPARSE GitHub.