Skip to main content
`Ctrl`+`K`

# rocSPARSE documentation

rocSPARSE is a library that provides basic linear algebra subroutines for sparse matrices and vectors. It’s created using the HIP programming language, implemented on top of the ROCm runtime and toolchains, and optimized for AMD discrete GPUs.

The rocSPARSE public repository is located at ROCm/rocm-libraries.

Note

The rocSPARSE repository for ROCm 6.4.3 and earlier is located at ROCm/rocSPARSE.

Note

For portability, ROCm provides the hipSPARSE library. hipSPARSE includes a comprehensive, portable interface that supports multiple backends (including rocSPARSE and cuSPARSE). For documentation and examples, see the hipSPARSE documentation.

For ROCm code examples, see ROCm/rocm-examples.

Install

- Linux installation guide

- Windows installation guide

Conceptual

- rocSPARSE design

How to

- Use rocSPARSE

- Contribute to rocSPARSE

Examples

- Client samples

API reference

- Exported rocSPARSE functions

- Debugging rocSPARSE functions

- rocSPARSE data types

- rocSPARSE precision support

- rocSPARSE environment variables

- rocSPARSE profiling functions

- rocSPARSE enumerations

- Sparse auxiliary functions

- Sparse level 1 functions

- Sparse level 2 functions

- Sparse level 3 functions

- Sparse extra functions

- Sparse preconditioner functions

- Sparse conversion functions

- Sparse reordering functions

- Sparse utility functions

- Sparse generic functions

- Bitwise reproducibility

To contribute to the documentation, see Contributing to ROCm.

You can find licensing information on the Licensing page.